Class: Rack::PageSpeed::Store::Redis
- Inherits:
-
Object
- Object
- Rack::PageSpeed::Store::Redis
- Defined in:
- lib/rack/pagespeed/store/redis.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(*args) ⇒ Redis
constructor
A new instance of Redis.
Constructor Details
Instance Method Details
#[](key) ⇒ Object
12 13 14 |
# File 'lib/rack/pagespeed/store/redis.rb', line 12 def [] key @client.get key end |
#[]=(key, value) ⇒ Object
16 17 18 |
# File 'lib/rack/pagespeed/store/redis.rb', line 16 def []= key, value @client.set key, value end |