dffrntmedia / tc-redis-cluster

Redis support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redis storage adapters

Circle CI

Thumbor redis storage adapters.

Installation

pip install tc_redis

Configuration

To use redis as a storage or result storage some values must be configured in thumbor.conf

Redis Storage
STORAGE='tc_redis.storages.redis_storage'

REDIS_STORAGE_IGNORE_ERRORS = True
REDIS_STORAGE_SERVER_STARTUP_NODES = 'localhost:7001,localhost:7002'
REDIS_STORAGE_SERVER_PASSWORD = None
Redis Result Storage
RESULT_STORAGE='tc_redis.result_storages.redis_result_storage'

REDIS_RESULT_STORAGE_IGNORE_ERRORS = True
REDIS_RESULT_STORAGE_SERVER_STARTUP_NODES = 'localhost:7001,localhost:7002'
REDIS_RESULT_STORAGE_SERVER_PASSWORD = None

dffrntlab part

Where it is

https://pypi.org/project/dffrntlab-tc-redis/

Push to PyPi

python setup.py sdist bdist_wheel
# install twine if you don't have
# pip install twine
twine upload dist/*

Now we use this profile to push packages: https://pypi.org/user/maximka777/ (need to register dffrntlab one).

About

Redis support

License:MIT License


Languages

Language:Python 100.0%