I use custom cache backend with Django and I want to share it with
community. The code is very simple:
http://www.pastethat.com/aNWVB

The main advantage is that it is persistent just like 'db' backend and
in the same time uses memory which you can fine-tune with cache_size
parameter. I believe that this backend is superior to database cache
backend in situations when you need your cache to persist.

It is too simple to start the external project, and cache backends are
not pluggable. So, I would be glad if Django developers integrate it.
(note: don't name the file durus.py -- it will clash with Durus
package,  name it like durus_cache.py)

I use something like following in my settings file:
CACHE_BACKEND = 'durus://path/to/my/cache/file?cache_size=200000'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to