Class: Cachy::MemcachedWrapper

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/cachy/memcached_wrapper.rb

Instance Method Summary collapse

Methods inherited from Wrapper

#initialize, #method_missing, #read, #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

#write(key, result, options = {}) ⇒ Object



4
5
6
# File 'lib/cachy/memcached_wrapper.rb', line 4

def write(key, result, options={})
  @wrapped.set(key, result, options[:expires_in].to_i)
end