class Mcache::Client

Public Instance Methods

fetch(key, options = {}) { || ... } click to toggle source
# File lib/mcache/client.rb, line 5
def fetch(key, options = {})
  Mcache.connection.run do |cn|
    cn.fetch(key, options.fetch(:expires_in, 0)) do
      yield
    end
  end
end