- Notifications
You must be signed in to change notification settings - Fork2
a Valkey backend for django
License
NotificationsYou must be signed in to change notification settings
django-utils/django-valkey
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
django-valkey is a BSD licensed, full featured Valkey cache and session backendfor Django.
this project is a fork of the wonderfuldjango-redis project.they wrote all the good codes.
- 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
- Python 3.10+ (if you use with libvalkey, they don't support 3.13 yet)
- Django 4.2.20+
- valkey-py 6.0.2+ (probably works on older versions too)
- Valkey server 7.2.6+ (probably works with older versions too)
check out ourDocs for a complete explanation
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 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.
- Fix the CI in cluster branch.
- Add cluster to documentations.
- Refactor cluster branch.
Copyright (v) 2024 Amirreza Sohrabi farCopyright (c) 2011-2016 Andrey Antukh <niwi@niwi.nz>Copyright (c) 2011 Sean BleierAll rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditionsare 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 ORIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIESOF 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, BUTNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OFTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
About
a Valkey backend for django