Are bulk methods still available ?
MarchesiGabriele opened this issue · 3 comments
Hi,
I'm trying to use the cache.keys() method since I want to retrieve a bunch of keys with the same pattern. In the documentation I found those methods:
but when I use them I get " RedisCache object has no attribute 'keys' ".
All those bulk methods dont even show up between the available methods in the autocomplete tool.
Is the documentation out of date ?
Is there another way, using the existing methods, to retrieve / delete in bulk ?
Thank you
I figured out the problem.
I removed this line from the cache settings in the settings.py file and now it works correctly
@MarchesiGabriele , I'm solving this kind of problem right now.
Could you tell me, what line in cache settings in settings.py file did you remove? Thank you
I think it was something wrong in the cache configuration, I mixed up two different modules and I didnt notice.
I'm now using
'BACKEND': 'redis_cache.RedisCache',
instead of
"BACKEND": "django_redis.cache.RedisCache",
The documentation is correct, it was my mistake.