﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31794	NotImplementedError: subclasses of BaseCache must provide a touch() method	Robin	nobody	"I am getting the following exception when trying to call cache.touch() method. 


{{{
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)
   ...
}}}
"	Uncategorized	closed	Core (Cache system)	3.1	Normal	worksforme	cache		Unreviewed	0	0	0	0	0	0
