a valkey cache and session backend for django
Project description
Introduction
django-valkey is a BSD licensed, full featured Valkey cache and session backend for Django.
this project is a fork of the wonderful django-redis project. they wrote all the good codes.
Why use django-valkey?
Valkey is a free licenced and well maintained key/value database
Uses native valkey-py url notation connection strings
Pluggable clients
Pluggable parsers
Pluggable serializers
Primary/secondary support in the default client
Comprehensive test suite
Used in production in several projects as cache and session storage
Supports infinite timeouts
Facilities for raw access to Valkey client/connection pool
Highly configurable (can emulate memcached exception behavior, for example)
Unix sockets supported by default
Requirements
Python 3.10+
Django 3.2.9+
valkey-py 6.0.0+ (probably works on older versions too)
Valkey server 7.2.6+ (probably works with older versions too)
User guide
Documentation
check out our Docs for a complete explanation
Installation
Install with pip:
python -m pip install django-valkey
Install with c bindings:
python -m pip install django-valkey[libvalkey]
Install 3rd party compression
python -m pip install django-valkey[lz4]
python -m pip install django-valkey[pyzstd]
python -m pip install django-valkey[brotli]
Contribution
contribution rules are like other projects,being respectful and keeping the ethics. also make an issue before going through troubles of coding, someone might already be doing what you want to do.
Todo
fix ignore_exception issue in cluster client (cluster branch).
fix the CI.
review the documentations.
refactor cluster branch.
License
Copyright (v) 2024 Amirreza Sohrabi far
Copyright (c) 2011-2016 Andrey Antukh <niwi@niwi.nz>
Copyright (c) 2011 Sean Bleier
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS`` AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_valkey-0.1.8.tar.gz
.
File metadata
- Download URL: django_valkey-0.1.8.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.10.11-2-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96bc16dd475013bc79b5a5cc400a14add87990f4a4aa636edc15980844202617 |
|
MD5 | de163d6a44aa1132a6701bcaeef6b95d |
|
BLAKE2b-256 | edbddfb280215cf760974442dfe1815eb225b5551201a38e43aa70b187622a43 |
File details
Details for the file django_valkey-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: django_valkey-0.1.8-py3-none-any.whl
- Upload date:
- Size: 47.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.10.11-2-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69b7204d881c6cee52af75d50fa558fa3c6b13c856f2cca0cb2cab8c1cf0a4d5 |
|
MD5 | ea0bfa0c7e67f10efd826225e4264ca7 |
|
BLAKE2b-256 | b9edf54b342e061073a9519e6702e5e18402f3e4f483bb3d47502a13e7bfe68b |