Tarantool utils for Python
Project description
Caution! This module tested only with tarantool 1.5.
By this time celery backend is not ready.
Only one tarantool instance is supported by this time.
tarantool_utils.django.TarantoolCache
tarantool_utils.django.TarantoolSession
tarantool_utils.celery.TarantoolBackend
tarantool_utils.sentry.TarantoolBuffer
Installation
Take expirationd.
https://github.com/mailru/tntlua/blob/master/expirationd.lua for tarantool 1.5
https://github.com/tarantool/expirationd - tarantool 1.6
Example tarantool.conf
# Django cache space[0].enabled = 1 space[0].index[0].type = "HASH" space[0].index[0].unique = 1 space[0].index[0].key_field[0].fieldno = 0 space[0].index[0].key_field[0].type = "STR" # key space[0].index[1].type = "TREE" space[0].index[1].unique = 0 space[0].index[1].key_field[0].fieldno = 2 space[0].index[1].key_field[0].type = "NUM64" # timeout # Sentry buffer space[1].enabled = 1 space[1].index[0].type = "HASH" space[1].index[0].unique = 1 space[1].index[0].key_field[0].fieldno = 0 space[1].index[0].key_field[0].type = "STR" # key space[1].index[1].type = "TREE" space[1].index[1].unique = 0 space[1].index[1].key_field[0].fieldno = 2 space[1].index[1].key_field[0].type = "NUM64" # timeout space[2].enabled = 1 space[2].index[0].type = "HASH" space[2].index[0].unique = 1 space[2].index[0].key_field[0].fieldno = 0 space[2].index[0].key_field[0].type = "STR" # key space[2].index[0].key_field[1].fieldno = 1 space[2].index[0].key_field[1].type = "STR" # column space[2].index[1].type = "TREE" space[2].index[1].unique = 0 space[2].index[1].key_field[0].fieldno = 0 space[2].index[1].key_field[0].type = "STR" # key space[2].index[2].type = "TREE" space[2].index[2].unique = 0 space[2].index[2].key_field[0].fieldno = 3 space[2].index[2].key_field[0].type = "NUM64" # timeout
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
tarantool-utils-0.1.0.tar.gz
(5.7 kB
view details)
File details
Details for the file tarantool-utils-0.1.0.tar.gz
.
File metadata
- Download URL: tarantool-utils-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2f7a0e424d1827fda18e70ecb2f608473d8bbbced9ab11bf341fdab36171d68 |
|
MD5 | 427ad9b6526ddccae12d42a6df72c87d |
|
BLAKE2b-256 | 257321cf61b8f1e843eec4137f5b8281665c6fcb7232342f39ab549d0cf21b30 |