Class: Redis::DistRedis

Inherits:
Distributed show all
Defined in:
lib/redis/dist_redis.rb

Instance Attribute Summary

Attributes inherited from Distributed

#ring

Instance Method Summary collapse

Methods inherited from Distributed

#add_server, #bgsave, #delete_cloud!, #flush_all, #flush_db, #keys, #keys_by_node, #method_missing, #mget, #mset, #node_for_key, #node_keys, #on_each_node, #quit, #save, #type

Constructor Details

#initialize(*args) ⇒ DistRedis

Returns a new instance of DistRedis.



8
9
10
11
# File 'lib/redis/dist_redis.rb', line 8

def initialize(*args)
  Redis.deprecate "DistRedis is deprecated in favor of Redis::Distributed.", caller[1]
  super(*args)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Redis::Distributed