This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Feb 21 16:57:33 -0800 2009 | |
| |
LICENSE.txt | Sat Feb 21 16:56:13 -0800 2009 | |
| |
README | Sun Mar 01 20:10:10 -0800 2009 | |
| |
setup.py | Sun Mar 01 20:10:10 -0800 2009 | |
| |
tokyo_sessions/ | Sun Mar 01 21:14:09 -0800 2009 |
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 = 1978
That's it. Hopefully this backend gives you all the better performance while
still not sacrificing persistence.







