2 ms·
Surely it's just: client = pymemcache.client.Client(('127.0.0.1', 11211)) cache_wrapper = ring.memcache if some_condition else ring.whatever @cache_w
by orf 7y ago
Surely it's just:
client = pymemcache.client.Client(('127.0.0.1', 11211))
cache_wrapper = ring.memcache if some_condition else ring.whatever
@cache_wrapper(...)
def ...