Method: MethodCache::Proxy#update
- Defined in:
- lib/method_cache/proxy.rb
#update ⇒ Object
46 47 48 49 50 |
# File 'lib/method_cache/proxy.rb', line 46 def update value = block_given? ? yield(cache[key]) : target.send(method_name_without_caching, *args) write_to_cache(key, value) value end |