Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericflo/django-tokyo-sessions
This is a session backend for Django that stores sessions in a Tokyo Cabinet database, which communicates via Tokyo Tyrant using the PyTyrant library. Tokyo Cabinet is a key-value store similar to BDB.
https://github.com/ericflo/django-tokyo-sessions
Last synced: 3 months ago
JSON representation
This is a session backend for Django that stores sessions in a Tokyo Cabinet database, which communicates via Tokyo Tyrant using the PyTyrant library. Tokyo Cabinet is a key-value store similar to BDB.
- Host: GitHub
- URL: https://github.com/ericflo/django-tokyo-sessions
- Owner: ericflo
- License: bsd-3-clause
- Created: 2009-02-22T00:55:51.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-03-02T05:14:13.000Z (over 15 years ago)
- Last Synced: 2024-07-20T02:50:38.714Z (4 months ago)
- Language: Python
- Homepage:
- Size: 88.9 KB
- Stars: 81
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README
- License: LICENSE.txt
Awesome Lists containing this project
README
django-tokyo-sessions
=======================This is a session backend for Django that stores sessions in a Tokyo Cabinet
database, which communicates via Tokyo Tyrant using the PyTyrant library. Tokyo
Cabinet is a key-value store similar to BDB.The advantage to using this over other solutions is that your data is persistent
unlike memcached, and Tokyo Cabinet is designed to store key-value data like
this, so performance is much closer to that of memcached than with a database.Installing django-tokyo-sessions
-----------------------------------1. Either download the tarball and run ``python setup.py install``, or simply
use easy install or pip like so ``easy_install django-tokyo-sessions``.2. Set ``tokyo_sessions.tyrant`` as your session engine, like so::
SESSION_ENGINE = 'tokyo_sessions.tyrant'
3. Add settings describing where to connect to the Tokyo Tyrant database::
TT_HOST = '127.0.0.1'
TT_PORT = 1978That's it. Hopefully this backend gives you all the better performance while
still not sacrificing persistence.