| Rediscluster-Py. Redis Å° °ª ÀúÀå¼ÒÀÇ Å¬·¯½ºÅÍ ¿ë ÆÄÀ̽ã Ŭ¶óÀ̾ðÆ® |
Áö±Ý ´Ù¿î·Îµå |
Rediscluster-Py. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Salimane Adjao Moustapha
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://github.com/salimane/
Rediscluster-Py. ű×
Rediscluster-Py. ¼³¸í
RedisCluster-Py´Â RedIS Å° °ª ÀúÀå¼Ò Ŭ·¯½ºÅÍ ¿ë Ŭ¶óÀ̾ðÆ® ¿ªÇÒÀ»ÇÏ´Â Python ¸ðµâÀÔ´Ï´Ù. Python ¹öÀü 2.6, 2.7 ¹× 3.2.Installation Sudo Pip ¿ë Travis CI¸¦ ÅëÇØ Travis CI¸¦ ÅëÇØ Å×½ºÆ®µÇ¾ú½À´Ï´Ù. ºñ·Ï PIP »ç¿ë) : sudo Easy_install RedisclusterFrom ¼Ò½º : sudo python setup.py ¼³Ä¡ installrunning Å×½ºÆ® git clone https://github.com/salimane/rediscluster-py.git $ cd rediscluster-py $ VI Å×½ºÆ® / config.py $ ./run_testsgetting ½ÃÀÛ >>> Import RedisCluster >>> cluster = {... nodes ': {... node_1': { 'È£½ºÆ®': '127.0.0.1', 'Æ÷Æ®': 63791}, ... 'node_2 ': {'È£½ºÆ® ':'127.0.0.1 ','Æ÷Æ® ': 63792}, ...'node_5 ': {'È£½ºÆ® ':'127.0.0.1 ','Æ÷Æ® ': 63795}, ...'node_6 ': {'È£½ºÆ® ':'127.0.0.1 ','Æ÷Æ® ': 63796} ...}, ...'master_of ': {... node_1': {... node_1 ':'node_6 ', node_6 slaveof node_1 in redis6. conf ... node_2 ':'node_5 '# node_5 node_5 redis5.conf ...}, ...'default_node ':'node_1 '...} >>> r = rediscluster.strictredis (cluste r = Ŭ·¯½ºÅÍ, db = 0) >>> r.set ( 'foo', 'bar') true >>> r.get ( 'foo') 'bar'Information- ÄÚµå : git clone git : // github. com / salimane / rediscluster-py.git- Ȩ : http://github.com/salimane/rediscluster-py- ¹ö±× : http://github.com/salimane/rediscluster-py/issuesproduct's ȨÆäÀÌÁö
Rediscluster-Py. °ü·Ã ¼ÒÇÁÆ®¿þ¾î