django-valkey
valkey is an open source BSD Licensed high-performance key/value database that supports a variety of workloads such as caching, message queues, and can act as a primary database.
django-valkey is a customizable valkey backend to be used in django.
this project was initially a fork of the wonderful django-redis
project.
django-valkey Features
- Uses native valkey-py url notation connection strings
- Pluggable clients:
- Default Client
- Herd Client
- Sentinel Client
- Sharded Client
- Async client
- or just plug in your own client
- Pluggable serializers:
- Pickle Serializer
- Json Serializer
- msgpack serializer
- or plug in your own serializer
- Pluggable compression:
- brotli compression
- bz2 compression (bzip2)
- gzip compression
- lz4 compression
- lzma compression
- zlib compression
- zstd compression
- plug in your own
- Pluggable parsers
- Valkey's default parser
- plug in your own
- Pluggable connection pool
- Valkey's default connection pool
- plug in your own
- Comprehensive test suite
- Supports infinite timeouts
- Facilities for raw access to Valkey client/connection pool
- Highly configurable (really, just look around)
- Unix sockets supported by default
Requirements
Python 3.10+
Django 4.2.20+
valkey-py 6.0.1+
Valkey 7.2.6+