{{{
File "PROJECT_PATH/.venv/lib/python3.8/site-
packages/django/core/cache/backends/base.py", line 135, in touch
raise NotImplementedError('subclasses of BaseCache must provide a
touch() method')
NotImplementedError: subclasses of BaseCache must provide a touch() method
}}}
{{{
# settings.py
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "unique-snowflake",
}
}
#tasks.py
from django.core.cache import cache
def test():
...
cache.touch("session_cache_ffff0000", 1500)
...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31794>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => worksforme
Comment:
`touch()` works for me with `LocMemCache`. I cannot reproduce this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/31794#comment:1>