@_enable_lock<EOL><INDENT>def set_evict_number(self, new_evict_number, only_read=False):<DEDENT>
if not isinstance(new_evict_number, int) or new_evict_number <= <NUM_LIT:0>:<EOL><INDENT>self.logger.warning(<EOL>'<STR_LIT>' % new_evict_number)<EOL>return<EOL><DEDENT>self.evict_number = new_evict_number<EOL>
>>> cache = Cache(log_level=logging.WARNING)
>>> cache.set_evict_number(10)
>>> cache.evict_number
10
>>> cache.set_evict_number('haha')
>>> cache.evict_number
10