$ pip install django-cacheops python from cacheops.defaults import ( REPLICAS, CACHEOPS_REDIS ) } } python from cacheops import cached_as @cached_as('<APP_NAME>.<MODEL_NAME>') class MyModel(models.Model): ...