Getting Started¶
For each type of cache query, you need to define a class. You should define
them in caches.py file inside your app. Also you need to put your app
name inside FLASH_APPS settings to get your cache classes registered
on startup. If settings file doesn’t have FLASH_APPS setting, then all
apps in INSTALLED_APPS are checked for cache class registration.
There are mainly two types of cache classes InstanceCache,
QuerysetCache. There is one more class BatchCacheQuery
for making batch cache queries using which you can get values corressponding to
multiple keys from memcache in single network call. You can also define
ModelCacheManager for models which are somewhat similar to
Django’s Managers.