**Case**
If the 2 methods call the underlying redis client DEL and MSET commands
with
empty parameters then an exception will be thrown by the redis client:
redis.exceptions.ResponseError: wrong number of arguments for 'del'
command
and
redis.exceptions.ResponseError: Command # 1 (MSET) of pipeline caused
error: wrong number of arguments for 'mset' command
respectively.
**Steps to reproduce**
Using
{{{
USE_TZ = False
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME":
"mydatabase"}}
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": "redis://localhost:6379",
}
}
}}}
as a settings file run a shell
{{{
./manage.py shell --settings myapp.settings
from django.core.cache import cache
cache.delete_many([])
}}}
raises exception redis.exceptions.ResponseError: wrong number of arguments
for 'del' command
{{{
cache.set_many({})
}}}
raises exception redis.exceptions.ResponseError: Command # 1 (MSET) of
pipeline caused error: wrong number of arguments for 'mset' command
--
Ticket URL: <https://code.djangoproject.com/ticket/33826>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: (none) => Christos Kopanos
--
Ticket URL: <https://code.djangoproject.com/ticket/33826#comment:1>