Sha256: e5ec5359a825cb62569e12f9182f2a6cfe0f5d8bf76a22ab669bc81c2c44f308

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

Redis.deprecate %q{"redis/dist_redis" is deprecated. Require "redis/distributed" and replace DistRedis for Redis::Distributed.}, caller[0]

require "redis/hash_ring"
require "redis/distributed"

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

# For backwards compatibility
DistRedis = Redis::DistRedis

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redis-1.0.7 lib/redis/dist_redis.rb
redis-1.0.6 lib/redis/dist_redis.rb