#NEWLINE# def set_many( self , mapping , timeout = None ) : #NEWLINE# #INDENT# 'Sets multiple keys and values from a mapping.\n\n        :param mapping: a mapping with the keys/values to set.\n        :param timeout: the cache timeout for the key (if not specified,\n                        it uses the default timeout). A timeout of 0\n                        indicates tht the cache never expires.\n        :returns: Whether all given keys have been set.\n        :rtype: boolean\n        ' #NEWLINE# rv = True #NEWLINE# for ( key , value ) in _items ( mapping ) : #NEWLINE# #INDENT# if ( not self . set ( key , value , timeout ) ) : #NEWLINE# #INDENT# rv = False #NEWLINE# #UNINDENT# #UNINDENT# return rv