lib/redis_cluster/configuration.rb in redis_cluster-0.2.9 vs lib/redis_cluster/configuration.rb in redis_cluster-0.3.0

- old
+ new

@@ -1,10 +1,9 @@ module RedisCluster class Configuration HASH_SLOTS = 16384 - REQUEST_TTL = 16 DEFAULT_TIMEOUT = 1 SUPPORT_SINGLE_NODE_METHODS = %w( persist expire expireat ttl pexpire pexpireat pttl dump restore del exists move type decr decrby incr incrby incrbyfloat set setex psetex setnx get @@ -16,8 +15,12 @@ hlen hset hsetnx hmset mapped_hmset hget hmget mapped_hmget hdel hexists hincrby hincrbyfloat hkeys hvals hgetall publish pfadd ).freeze SUPPORT_MULTI_NODE_METHODS = %w(keys script multi pipelined).freeze + + def self.method_names + SUPPORT_SINGLE_NODE_METHODS + SUPPORT_MULTI_NODE_METHODS + end end end