Redis-Shard.

Redis Sharding API.
Áö±Ý ´Ù¿î·Îµå

Redis-Shard. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °Ô½ÃÀÚ À̸§:
  • Young King
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://blog.flyzen.com

Redis-Shard. ű×


Redis-Shard. ¼³¸í

redis sharding api. Redis-Shard´Â Redis Sharding APIÀÔ´Ï´Ù. ÀÌ ±â»ç http://antirez.com/post/redis-presharding.html.usage¿¡ µû¶ó Å° ¶Ç´Â Å° ű×ÀÇ CRC32 üũ¼¶ ( "Å° {key_tag}")ÀÇ CRC32 üũ¼¶À» ±â¹ÝÀ¸·Î ¼öÇàµË´Ï´Ù. ¿©·¯ ¼­¹ö. ±âº»ÀûÀ¸·Î Çؽà ¸µÀº ¼­¹öÀÇ À̸§ ±¸¼º¿¡¼­ CRC32 ÇØ½Ì ¾Ë°í¸®ÁòÀ» »ç¿ëÇÕ´Ï´Ù. ¿øÇϴ´ë·Î À̸§À» Á¤ÀÇ ÇÒ ¼ö´Â ÀÖÁö¸¸ °íÀ¯ÇؾßÇÕ´Ï´Ù. iPaddress·Î Çؽø¦ ¹ÙÀεùÇÏ°í ½ÍÁö´Â ¾ÊÀ¸¹Ç·Î iPaddress °ü·Ã ±¸¼º ¸¸ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. À̸§Àº º¸°üµÇ¾î ÀÖÀ¸¹Ç·Î Çؽà ¸µÀÇ ¼ø¼­°¡ À¯ÁöµË´Ï´Ù. >>> redis_shard.shard °¡Á® ¿À±â RedisshardApi >>> ¼­¹ö = >>>>>> Ŭ¶óÀ̾ðÆ® = RedisshardApi (¼­¹ö) >>> client.set ('test ', 1) >>> Print Client.get ( 'test') >>> client.zadd ( 'testset', 'first', 1) >>> client.zadd ( 'testset', 'second', 2) >>> Àμâ client.zrange ( 'testset', 0, -1) Çؽà Tagssee ±â»ç ÀÚ¼¼ÇÑ ³»¿ëÀº http://antirez.com/post/redis-presharding.html. >>> client.set ( 'foo', 2) >>> client.set ( 'a {foo}', 5) >>> client.set ( 'b {foo}', 5) >>> client.set ( 'c {foo}', 5) ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã ÀÌ ¸±¸®½º¿¡¼­´Â »õ·Î¿î ±â´É : ¡¤ Manifest.in ÆÄÀÏÀ» Ãß°¡ÇϽʽÿÀ


Redis-Shard. °ü·Ã ¼ÒÇÁÆ®¿þ¾î