RediScluster-PY.

Ein Python-Client für den Cluster von Redis-Schlüsselwertspeicher
Jetzt downloaden

RediScluster-PY. Ranking & Zusammenfassung

Anzeige

  • Rating:
  • Lizenz:
  • MIT/X Consortium Lic...
  • Preis:
  • FREE
  • Name des Herausgebers:
  • Salimane Adjao Moustapha
  • Website des Verlags:
  • http://github.com/salimane/

RediScluster-PY. Stichworte


RediScluster-PY. Beschreibung

rediScluster-py ist ein Python-Modul, das als Client für den Redis-Key-Value-Store-Cluster-Cluster-Cluster-Cluster-Cluster-Cluster fungiert.rediscluster-py wurde von Travis CI für Python Version 2.6, 2.7 und 3.2.installation sudo PIP-Installieren von RediSclusteror alternativ (Sie sollten wirklich sein Verwenden von PIP): Sudo Easy_install RediSclusterFrom Quelle: Sudo Python Setup.py installRunning tests git clone https://github.com/salimane/rediscluster-py.git $ CD RediScluster-PY $ VI Tests / config.py $ ./run_testsgetting Start >>> Import RediScluster >>> Cluster = {... 'Knoten': {... 'node_1': {'host': '127.0.0.1', 'Port': 63791}, ... 'node_2 ': {' host ':' 127.0.0.1 ',' Port ': 63792}, ...' node_5 ': {' host ':' 127.0.0.1 ',' Port ': 63795}, ...' node_6 ': {' host ':' 127.0.0.1 ',' Port ': 63796} ...}, ...' master_of ': {...' node_1 ':' node_6 ', # node_6 slavef node_1 in redis6. conf ... 'node_2': 'node_5' # node_5 slavef node_2 in redis5.conf ...}, ... 'default_node': 'node_1' ...} >>> r = rediScluster.strudiTredis (Cluste R = Cluster, db = 0) >>> R.Set ('Foo', 'Bar') TRUE >>> R.Get ('Foo') 'Bar'information- Code: Git Klongit: // 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. Zugehörige Software