Module: Cache::MemcachedRails::Override

Defined in:
lib/cache/memcached_rails.rb

Instance Method Summary collapse

Instance Method Details

#_cas(k, ttl, &blk) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/cache/memcached_rails.rb', line 22

def _cas(k, ttl, &blk)
  if _valid_ttl?(ttl)
    thread_metal.cas k, ttl, &blk
  else
    thread_metal.cas k, &blk
  end
end

#_delete(k) ⇒ Object



30
31
32
# File 'lib/cache/memcached_rails.rb', line 30

def _delete(k)
  thread_metal.delete k
end

#_exist?(k) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/cache/memcached_rails.rb', line 10

def _exist?(k)
  thread_metal.exist? k
end

#_get(k) ⇒ Object



14
15
16
# File 'lib/cache/memcached_rails.rb', line 14

def _get(k)
  thread_metal.get k
end

#_get_multi(ks) ⇒ Object



18
19
20
# File 'lib/cache/memcached_rails.rb', line 18

def _get_multi(ks)
  thread_metal.get_multi ks
end