#NEWLINE# def set( self , key , value , timeout = None ) : #NEWLINE# #INDENT# "\n        Sets a key-value in the cache.\n\n        Optionally accepts a ``timeout`` in seconds. Defaults to ``None`` which\n        uses the resource's default timeout.\n        " #NEWLINE# if ( timeout is None ) : #NEWLINE# #INDENT# timeout = self . timeout #NEWLINE# #UNINDENT# self . cache . set ( key , value , timeout )