class TieredCaching::HashStore
Public Class Methods
new(hash)
click to toggle source
# File lib/tiered_caching/hash_store.rb, line 9 def initialize(hash) @hash = hash end
Public Instance Methods
getset(key) { || ... }
click to toggle source
# File lib/tiered_caching/hash_store.rb, line 13 def getset(key) @hash[key] ||= yield end