Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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.
Python
branch: master

Got rid of the threadlocal and just pay a small connection overhead p…

…rice for now. Now we don't have to worry about detecting when the connection closes and trying to reconnect.
latest commit 9f2dfd6e3d
@ericflo authored
Failed to load latest commit information.
tokyo_sessions Got rid of the threadlocal and just pay a small connection overhead p…
.gitignore Added a .gitignore
LICENSE.txt first commit
README
setup.py More documentation updates

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.
Something went wrong with that request. Please try again.