qmetrics.net

Django Redis

Redis cache and session backend for Django

A full-featured Redis backend for Django caching and session storage, using redis-py URL connection strings.

Overview

Django Redis is a cache and session backend that connects Django to a Redis server. You configure it in Django’s CACHES setting with the RedisCache backend and a redis://, rediss://, or unix:// location, and you can use the same cache as Django’s session store without a separate session backend.

The client layer supports pluggable clients, parsers, and serializers, primary and secondary Redis endpoints in the default client, socket timeouts, compression via several compressor backends, pickle versioning, and optional behavior that ignores Redis errors similar to memcached. It exposes TTL helpers, persist and expire operations, distributed locks, key scan and bulk delete patterns, and limited access to native Redis commands such as SETNX and INCR through the cache API.

Raw Redis connection access is available when the Django cache interface is not enough. Unix domain sockets are supported in connection URLs, and Redis ACL usernames and passwords can be set in the URL or OPTIONS.

The project is maintained under Jazzband and is intended for production use as both cache and session storage alongside Django and redis-py.

Key features

  • Redis cache and session backend
  • redis-py URL connection strings
  • Pluggable clients, parsers, serializers
  • Compression and infinite timeout support
  • Distributed cache locks
  • TTL, persist, and expire helpers
  • Key scan and pattern delete
  • Raw Redis client access

Use cases

  • Django application caching with Redis
  • Storing Django sessions in Redis
  • Distributed locking via cache
  • Production cache with failover options

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

GORM

Feature-rich ORM library for Go applications

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

★ 40k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

TypeORM

TypeScript and JavaScript ORM for many SQL and NoSQL databases

TypeORM maps objects to relational and document databases from Node.js, browsers, and mobile shells. It supports TypeScript and JavaScript with both Data Mapper and Active Record styles.

★ 36.7k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis 3

Java SQL mapper with XML or annotation config

MyBatis links Java objects to SQL and stored procedures via XML or annotations. It trims repetitive JDBC parameter and result handling.

★ 20.4k⟳ yesterdayApache-2.0

Node Redis

High-performance Redis client for Node.js

node-redis connects Node.js applications to Redis with typed commands, clustering, pub/sub, transactions, and optional client-side caching.

★ 17.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis-Plus

Enhanced MyBatis toolkit for Java database access

MyBatis-Plus extends MyBatis with code generation, conditional query builders, and pagination helpers. It stays compatible with MyBatis while adding convenience APIs for common CRUD work.

★ 17.5k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app