i am making a cache db using the django cache module i configured it in my settings.py like this
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'my_cache_table',
}
}
so in my something.py file example
def function():
log=cache['default']
log["cal"]+=1
can i do this so that a variable like cal would be formed and it would increase every time i call that function