Class: Cachy::MemcachedWrapper
- Defined in:
- lib/cachy/memcached_wrapper.rb
Instance Method Summary collapse
Methods inherited from Wrapper
#initialize, #method_missing, #respond_to?
Constructor Details
This class inherits a constructor from Cachy::Wrapper
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Cachy::Wrapper
Instance Method Details
#read(key) ⇒ Object
4 5 6 |
# File 'lib/cachy/memcached_wrapper.rb', line 4 def read(key) @wrapped.get(key) end |
#write(key, result, options = {}) ⇒ Object
8 9 10 |
# File 'lib/cachy/memcached_wrapper.rb', line 8 def write(key, result, ={}) @wrapped.set(key, result, [:expires_in].to_i) end |