Skip to main content

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.

Project description

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.tokyo as your session engine, like so:

    SESSION_ENGINE = 'tokyo_sessions.tokyo'
  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.

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

django-tokyo-sessions-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file django-tokyo-sessions-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-tokyo-sessions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e0d364ed031866c603fbdf0b80b8548cfc5c8372d2502ef78f54dd6162bd376b
MD5 723893d21aec60ed613123a097451725
BLAKE2b-256 535313d37890e252f11e9b733cf2023a6d822a32ad57e5561387fcab1ef6012b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page