can I store objects in the servers memory to cache data using django, or do I have to use memcache for that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are a variety of options, including using the server’s memory:
To use the server’s memory, in
settings.py, you should set the cache backend as follows:See the following page in the Django documentation for further information on the various cache backends and for details on how to enable caching: http://docs.djangoproject.com/en/dev/topics/cache/