# Suor/django-cacheops

A slick ORM cache with automatic granular event-driven invalidation.

Repository: https://github.com/Suor/django-cacheops
Canonical: https://ross.abutalabs.com/products/django-cacheops
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: django, caching, python, orm
Last push: 2026-04-15T14:49:26+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 77, release rhythm 35, longevity 100
- inputs: {"age_days": 5569, "days_push": 140, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2273, forks 240 (observed 2026-08-28T04:06:33.249230+00:00)

## What it is
A Django library providing automatic queryset caching with granular event-driven invalidation, backed by Redis. It also offers decorators for caching functions and views, transaction support, and dog-pile prevention.

## Use cases
- cache django orm querysets automatically
- invalidate cached querysets when data changes
- speed up django database reads with redis
- cache django views and functions
- prevent cache stampede on popular queries

## When to choose
- you use Django with Redis and want transparent ORM-level caching
- you need automatic cache invalidation tied to model writes
- you want to cache arbitrary functions or views with time or queryset semantics

## When to avoid
- your project does not use Django
- you cannot run Redis
- you need caching outside the ORM layer with custom invalidation logic

## Facets
- artifact type: library
- maturity: active
- function: caching, orm, database
- domain: web-development, backend, databases, developer-tools
- platform: python
- tags: django, redis, queryset-cache, cache-invalidation, orm-cache, web-server

## Member repositories
- Suor/django-cacheops (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:33.249230+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:41:40.031529+00:00, confidence not recorded.
  - readme: https://github.com/Suor/django-cacheops (fetched 2026-08-28T04:06:33.249230+00:00, sha 0e9ee0288dc4)
  - registry_pypi: https://pypi.org/pypi/django-cacheops/json (fetched 2026-08-29T10:22:04.157787+00:00, sha 9f6ef0cfb4a2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
