lib/cachy/memcached_wrapper.rb in cachy-0.3.1 vs lib/cachy/memcached_wrapper.rb in cachy-0.4.0
- old
+ new
@@ -1,7 +1,11 @@
require 'cachy/wrapper'
class Cachy::MemcachedWrapper < Cachy::Wrapper
+ def read(key)
+ @wrapped.get(key)
+ end
+
def write(key, result, options={})
@wrapped.set(key, result, options[:expires_in].to_i)
end
end
\ No newline at end of file