mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Compress all data inserted into memcached to avoid memcached size limits
This commit is contained in:
parent
2a4079eeb6
commit
9bc9145abd
1 changed files with 1 additions and 1 deletions
2
lib/ansible/cache/memcached.py
vendored
2
lib/ansible/cache/memcached.py
vendored
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue