<s> """<STR_LIT>""" <EOL> class FallbackClient ( object ) : <EOL> def __init__ ( self , caches ) : <EOL> assert len ( caches ) > <NUM_LIT:0> <EOL> self . caches = caches <EOL> def close ( self ) : <EOL> "<STR_LIT>" <EOL> for cache in self . caches : <EOL> cache . close ( ) <EOL> def set ( self , key , value , expire = <NUM_LIT:0> , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . set ( key , value , expire , noreply ) <EOL> def add ( self , key , value , expire = <NUM_LIT:0> , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . add ( key , value , expire , noreply ) <EOL> def replace ( self , key , value , expire = <NUM_LIT:0> , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . replace ( key , value , expire , noreply ) <EOL> def append ( self , key , value , expire = <NUM_LIT:0> , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . append ( key , value , expire , noreply ) <EOL> def prepend ( self , key , value , expire = <NUM_LIT:0> , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . prepend ( key , value , expire , noreply ) <EOL> def cas ( self , key , value , cas , expire = <NUM_LIT:0> , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . cas ( key , value , cas , expire , noreply ) <EOL> def get ( self , key ) : <EOL> for cache in self . caches : <EOL> result = cache . get ( key ) <EOL> if result is not None : <EOL> return result <EOL> return None <EOL> def get_many ( self , keys ) : <EOL> for cache in self . caches : <EOL> result = cache . get_many ( keys ) <EOL> if result : <EOL> return result <EOL> return [ ] <EOL> def gets ( self , key ) : <EOL> for cache in self . caches : <EOL> result = cache . gets ( key ) <EOL> if result is not None : <EOL> return result <EOL> return None <EOL> def gets_many ( self , keys ) : <EOL> for cache in self . caches : <EOL> result = cache . gets_many ( keys ) <EOL> if result : <EOL> return result <EOL> return [ ] <EOL> def delete ( self , key , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . delete ( key , noreply ) <EOL> def incr ( self , key , value , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . incr ( key , value , noreply ) <EOL> def decr ( self , key , value , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . decr ( key , value , noreply ) <EOL> def touch ( self , key , expire = <NUM_LIT:0> , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . touch ( key , expire , noreply ) <EOL> def stats ( self ) : <EOL> pass <EOL> def flush_all ( self , delay = <NUM_LIT:0> , noreply = True ) : <EOL> self . caches [ <NUM_LIT:0> ] . flush_all ( delay , noreply ) <EOL> def quit ( self ) : <EOL> pass </s>
