Class: Econfig::Redis
- Inherits:
-
Object
- Object
- Econfig::Redis
- Defined in:
- lib/econfig/redis.rb
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize(redis) ⇒ Redis
constructor
A new instance of Redis.
- #set(key, value) ⇒ Object
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 |