Class: UnifiedRedis::Adapter::EMRedis

Inherits:
Object
  • Object
show all
Defined in:
lib/unified_redis/adapters/emredis.rb

Instance Method Summary collapse

Constructor Details

#initialize(redis) ⇒ EMRedis

Returns a new instance of EMRedis.



4
5
6
# File 'lib/unified_redis/adapters/emredis.rb', line 4

def initialize(redis)
  @redis = redis
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(command, *args, &block) ⇒ Object



8
9
10
# File 'lib/unified_redis/adapters/emredis.rb', line 8

def method_missing(command, *args, &block)
  @redis.send(command, *args, &block)
end