Sha256: c2be4edb4d1459b3f8bfb8baf09438be390065eb7370727d1e41b205567eee7a
Contents?: true
Size: 471 Bytes
Versions: 27
Compression:
Stored size: 471 Bytes
Contents
module Innate class Cache # Memory cache is simply a Hash with the Cache::API, it's the reference # implementation for every other cache and the default cache. class Memory < Hash include Cache::API def cache_store(*args) super{|key, value| self[key] = value } end def cache_fetch(*args) super{|key| self[key] } end def cache_delete(*args) super{|key| delete(key) } end end end end
Version data entries
27 entries across 27 versions & 3 rubygems