lib/redis_cluster/slot.rb in redis_cluster-0.2.6 vs lib/redis_cluster/slot.rb in redis_cluster-0.2.7
- old
+ new
@@ -1,10 +1,10 @@
module RedisCluster
class Slot
KEY_PATTERN = /\{([^\}]*)\}/
- # key "{xxx}ooo" will calculate "xxx" for slot
+ # has tag key "{xxx}ooo" will calculate "xxx" for slot
# if key is "{}dddd", calculate "{}dddd" for slot
def self.slot_by(key)
key = key.to_s
KEY_PATTERN =~ key
key = $1 if $1 && !$1.empty?