Sha256: 0b8ac0ec08ecce46a0f02a84c2fea534ab4ef19e47d24e981ed0857f91b72182
Contents?: true
Size: 478 Bytes
Versions: 17
Compression:
Stored size: 478 Bytes
Contents
module CanTango module Cache class HashCache include Singleton attr_reader :options def configure_with options = {} @options ||= options end def load! key cache[key] end def save! key, rules cache[key] = rules end def delete key cache[key].delete if cache[key] end def cache @cache ||= {} end def type :memory end end end end
Version data entries
17 entries across 17 versions & 1 rubygems