Sha256: 5553e21f7f1737e565badc7bcf37e61b5bad724b65ba81c7b2dad367bab8d533
Contents?: true
Size: 309 Bytes
Versions: 2
Compression:
Stored size: 309 Bytes
Contents
module Pre class Cache module Fake def cache @cache ||= {} end def cache_read key cache[key] end def cache_write key, value cache[key] = value end def cache_fetch key, &block cache[key] ||= block.call end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pre-0.0.2 | lib/pre/cache_store/fake.rb |
pre-0.0.1 | lib/pre/cache_store/fake.rb |