Class: Econfig::Redis

Inherits:
Object
  • Object
show all
Defined in:
lib/econfig/redis.rb

Instance Method Summary collapse

Constructor Details

#initialize(redis) ⇒ Redis

Returns a new instance of Redis.



3
4
5
# File 'lib/econfig/redis.rb', line 3

def initialize(redis)
  @redis = redis
end

Instance Method Details

#get(key) ⇒ Object



7
8
9
# File 'lib/econfig/redis.rb', line 7

def get(key)
  @redis.get(key)
end

#set(key, value) ⇒ Object



11
12
13
# File 'lib/econfig/redis.rb', line 11

def set(key, value)
  @redis.set(key, value)
end