Sha256: 28951677fbd75fc7aebcdb25cfb24f00a0732c520da29dd415dba5edb618255b
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
require 'moneta' require 'active_support/inflector' module CanTango class Ability module Cache class MonetaCache # one cache store is shared for all store instances (w different names) attr_reader :store # for a YamlStore, the name is the name of the yml file def initialize name, options = {} super @store = CanTango::Cache::MonetaCache.instance @store.configure_with options end def load key store.load! key end def save key, rules store.save! key, rules end def invalidate! key store.delete key end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | lib/cantango/ability/cache/moneta_cache.rb |