Sha256: 67648a9a8bacd8dec54918c1141177e9993acfe1c922755fe0ca94c1dd6ccb8c

Contents?: true

Size: 199 Bytes

Versions: 6

Compression:

Stored size: 199 Bytes

Contents

require 'cachy/wrapper'

# Wrapper for Memcached
class Cachy::MemcachedWrapper < Cachy::Wrapper
  def write(key, result, options={})
    @wrapped.set(key, result, options[:expires_in].to_i)
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
grosser-cachy-0.1.0 lib/cachy/memcached_wrapper.rb
grosser-cachy-0.1.1 lib/cachy/memcached_wrapper.rb
grosser-cachy-0.1.2 lib/cachy/memcached_wrapper.rb
cachy-0.1.4 lib/cachy/memcached_wrapper.rb
cachy-0.1.3 lib/cachy/memcached_wrapper.rb
cachy-0.1.2 lib/cachy/memcached_wrapper.rb