Skip to main content

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.

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.2.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file tarantool-utils-0.1.2.tar.gz.

File metadata

File hashes

Hashes for tarantool-utils-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f7ab80c1b0d68af9ff67090c74a12046b9ec7e8900986ca5ada5c64861775e1e
MD5 5db2c6aba4d93fb53c7776698dc4f39d
BLAKE2b-256 8e4e8e0a903f055aa3fb4f17f45ddb24cf6a459515060179962aef777c5e9bb0

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