Commit 9bc9145a by Matt Martz

Compress all data inserted into memcached to avoid memcached size limits

parent 2a4079ee
......@@ -168,7 +168,7 @@ class CacheModule(BaseCacheModule):
return 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)
def keys(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment