Sha256: bfbd8f02872950d0c1ca5eaf0f0a3e34393f23ccf3879f2c7bd471957936fd11
Contents?: true
Size: 349 Bytes
Versions: 1
Compression:
Stored size: 349 Bytes
Contents
class Figgy class Store def initialize(finder, config) @finder = finder @config = config @cache = {} end def get(key) key = key.to_s @cache.delete(key) if @config.always_reload? if @cache.key?(key) @cache[key] else @cache[key] = @finder.load(key) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
figgy-0.0.1 | lib/figgy/store.rb |