Compress all data inserted into memcached to avoid memcached size limits

pull/8856/head
Matt Martz 10 years ago
parent 2a4079eeb6
commit 9bc9145abd

@ -168,7 +168,7 @@ class CacheModule(BaseCacheModule):
return value return value
def set(self, key, value): def set(self, key, value):
self._cache.set(self._make_key(key), value, time=self._timeout) self._cache.set(self._make_key(key), value, time=self._timeout, min_compress_len=1)
self._keys.add(key) self._keys.add(key)
def keys(self): def keys(self):

Loading…
Cancel
Save