#NEWLINE# def _set( self , key , value , timeout = None ) : #NEWLINE# #INDENT# if ( len ( self . _cache ) >= self . _max_entries ) : #NEWLINE# #INDENT# self . _cull ( ) #NEWLINE# #UNINDENT# if ( timeout is None ) : #NEWLINE# #INDENT# timeout = self . default_timeout #NEWLINE# #UNINDENT# self . _cache [ key ] = value #NEWLINE# self . _expire_info [ key ] = ( time . time ( ) + timeout )