0

I am using django-cache-utils 0.7 where I am not able to change the cache directory to a drive location other than the default location. Please can anyone tell me how to define custom location and set a size limit on the folder ?

CACHE_BACKEND = 'cache_utils.group_backend://localhost:11213/?timeout=600&max_entries=500'

When I try with path location instead of localhost it gives error.

Sohail.py
  • 3
  • 2

1 Answers1

0

cache_utils.group_backend is a cache backend that stores data in memcached. By itself it doesn't store it anywhere - on C drive or anywhere else. Memcached also doesn't keep its data on disk, but in memory (RAM).

As a consequence there is no right answer to your question.

If you want a cache backend that keeps its data on disk use FileBasedCache, but keep in mind that its much slower than memcached.

Ludwik Trammer
  • 24,602
  • 6
  • 66
  • 90
  • Thanks Ludwik Trammer,but I already knew about FileBasedCache wanted to avoid using FileBasedCache because of its disadvantages. – Sohail.py Apr 25 '14 at 05:57
  • Please could you just let me know what major difference will it make when I use Django_cache_utils-2.0 instead of Django_cache_utils-0.7 ? – Sohail.py Apr 25 '14 at 05:58