I need to use memcached and file based cache.
I setup my cache in settings:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
        'LOCATION': 'c:/foo/bar',
    },
    'inmem': {
        'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
    }
}
dummy is temporary.
Docs says:
cache.set('my_key', 'hello, world!', 30)
cache.get('my_key')
OK, but how can I now set and get cache only for 'inmem' cache backend (in 
future memcached)? Documentation doesn't mention how to do that.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to