Method: ThreadSafe::NonConcurrentCacheBackend#compute

Defined in:
lib/skylight/vendor/thread_safe/non_concurrent_cache_backend.rb

#compute(key) ⇒ Object



47
48
49
# File 'lib/skylight/vendor/thread_safe/non_concurrent_cache_backend.rb', line 47

def compute(key)
  store_computed_value(key, yield(@backend[key]))
end