Class: Mcache::Client
- Inherits:
-
Object
- Object
- Mcache::Client
- Defined in:
- lib/mcache/client.rb
Instance Method Summary collapse
Instance Method Details
#fetch(key, options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/mcache/client.rb', line 5 def fetch(key, = {}) Mcache.connection.run do |cn| cn.fetch(key, .fetch(:expires_in, 0)) do yield end end end |