@_enable_thread_pool<EOL><INDENT>@_enable_lock<EOL>@_enable_cleanup<EOL>def pop(self, key, timeout=<NUM_LIT:1>, is_async=False, only_read=False):<DEDENT>
if key not in self.cache_items:<EOL><INDENT>return None<EOL><DEDENT>return self.cache_items.pop(key)[key]<EOL>
Test:

>>> cache = Cache(log_level=logging.WARNING)
>>> cache.put('a', 0)
>>> cache.pop('a')
0
>>> cache.pop('b') == None
True