RedisCluster-Py.

Um cliente Python para o cluster da Redis Key-Value Store
Baixe Agora

RedisCluster-Py. Classificação e resumo

Propaganda

  • Rating:
  • Licença:
  • MIT/X Consortium Lic...
  • Preço:
  • FREE
  • Nome do editor:
  • Salimane Adjao Moustapha
  • Site do editor:
  • http://github.com/salimane/

RedisCluster-Py. Tag


RedisCluster-Py. Descrição

O RedIsCluster-Py é um módulo Python que atua como um cliente para o cluster de armazenamento de valor de gravação de Redis.redisCluster-Py foi testado via Travis CI para o Python versão 2.6, 2.7 e 3.2.Instalação sudo pip instalar redisclusteror alternativamente (você realmente deve ser Usando PIP embora): sudo easy_install redisclusterFrom Fonte: sudo python setup.py test running tests git clone https://github.com/salimane/rediscluster-py.git $ CD RediScluster-PY $ VI testes / config.py $ ./run_testsgetting Iniciado >>> Import RediScluster >>> cluster = {... '' nós ': {...' Node_1 ': {' host ':' 127.0.0.1 ',' Port ': 63791}, ...' Node_2 ': {' host ':' 127.0.0.1 ',' Porto ': 63792}, ...' Node_5 ': {' host ':' 127.0.0.1 ',' Porto ': 63795}, ...' Node_6 ': {' host ':' 127.0.0.1 ',' Porto ': 63796} ...}, ...' Master_OF ': {...' Node_1 ':' Node_6 ', # Node_6 SlaveOf Node_1 no Redis6. conf ... 'Node_2': 'Node_5' # Node_5 SlaveOf Node_2 in Redis5.conf ...}, ... 'default_node': 'node_1' ...} >>> r = rediscluster.stricstredis (Cluste r = cluster, db = 0) >>> r.set ('foo', 'bar') true >>> r.Get ('foo') 'Bar'Information- code: git clone git: // github. com / salimane / rediscluster-py.git- home: http://github.com/salimane/rediscluster-py-bugs: http://github.com/salimane/rediscluster-py/issuesproduct's homepage


RedisCluster-Py. Software Relacionado