You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add the django elasticache and connect, works but I can't delete using my old function.
def delete_cache(text):
for key in list(cache._cache.keys()):
if text in key:
cache.delete(key.replace(':1:', ''))
Usage
cache.set('test_123', data, 10000)
cache.set('test_4321', data, 10000)
cache.set('test', data, 10000)
# delete all cache starting by key "test"
delete_cache('test')
But using memcache I got this:
File "/var/app/current/xxx/utils.py", line x, in delete_cache
for key in list(cache._cache.keys()):
AttributeError: 'Client' object has no attribute 'keys'
How do I list Memcached keys?
Thanks
The text was updated successfully, but these errors were encountered:
When I add the django elasticache and connect, works but I can't delete using my old function.
Usage
But using memcache I got this:
How do I list Memcached keys?
Thanks
The text was updated successfully, but these errors were encountered: