#NEWLINE# def replace( self , key , val , flags = 0 , expireTime = 0 ) : #NEWLINE# #INDENT# "\n        Replace the given C{key}. It must already exist in the server.\n\n        @param key: the key to replace.\n        @type key: C{str}\n\n        @param val: the new value associated with the key.\n        @type val: C{str}\n\n        @param flags: the flags to store with the key.\n        @type flags: C{int}\n\n        @param expireTime: if different from 0, the relative time in seconds\n            when the key will be deleted from the store.\n        @type expireTime: C{int}\n\n        @return: a deferred that will fire with C{True} if the operation has\n            succeeded, and C{False} with the key didn't previously exist.\n        @rtype: L{Deferred}\n        " #NEWLINE# return self . _set ( 'replace' , key , val , flags , self , '' )