class MemCache

Public Instance Methods

get(key, raw = false)
Also aliased as: get_without_benchmark
Alias for: get_with_benchmark
get_multi(*keys)
Also aliased as: get_multi_without_benchmark
get_multi_with_benchmark(*keys) click to toggle source
# File lib/time_bandits/monkey_patches/memcache-client.rb, line 20
def get_multi_with_benchmark(*keys)
  ActiveSupport::Notifications.instrument("get.memcache") do |payload|
    results = get_multi_without_benchmark(*keys)
     payload[:misses] = keys.size - results.size
    results
  end
end
Also aliased as: get_multi
get_multi_without_benchmark(*keys)
Alias for: get_multi
get_with_benchmark(key, raw = false) click to toggle source
# File lib/time_bandits/monkey_patches/memcache-client.rb, line 10
def get_with_benchmark(key, raw = false)
  ActiveSupport::Notifications.instrument("get.memcache") do |payload|
    val = get_without_benchmark(key, raw)
    payload[:misses] = val.nil? ? 1 : 0
    val
  end
end
Also aliased as: get
get_without_benchmark(key, raw = false)
Alias for: get