@_check_function_obj(param_length=<NUM_LIT:1>)<EOL><INDENT>@_enable_lock<EOL>def replace_cleanup_func(self, func, only_read=False):<DEDENT>
self.logger.info('<STR_LIT>' % (<EOL>get_function_signature(self.cleanup), get_function_signature(func)))<EOL>self.cleanup = func<EOL>return True<EOL>
>>> cache = Cache(log_level=logging.WARNING)
>>> def cleanup(self): pass
>>> cache.replace_cleanup_func(cleanup)
True
>>> def cleanup_b(self, other): pass
>>> cache.replace_cleanup_func(cleanup_b)
False