@_check_function_obj(param_length=<NUM_LIT:2>)<EOL><INDENT>@_enable_lock<EOL>def replace_evict_func(self, func, only_read=False):<DEDENT>
self.logger.info('<STR_LIT>' % (<EOL>get_function_signature(self.evict_func), get_function_signature(func)))<EOL>self.evict_func = func<EOL>return True<EOL>
>>> cache = Cache(log_level=logging.WARNING)
>>> def evict(dict, evict_number=10): pass
>>> cache.replace_evict_func(evict)
True
>>> def evict_b(dict): pass
>>> cache.replace_evict_func(evict_b)
False
>>> def evict_c(dict, a, b): pass
>>> cache.replace_evict_func(evict_c)
False