Sha256: 6926db5cf7fc9354b9fd91d8909fcc80f1cd0104b2e701e96dd57a46d34fa650
Contents?: true
Size: 644 Bytes
Versions: 3
Compression:
Stored size: 644 Bytes
Contents
module Flexite class Configuration attr_accessor :paths, :root_cache_key, :source_roots, :hierarchy attr_accessor :app_link, :app_name, :history_limit attr_reader :cache def initialize @paths = {} @root_cache_key = 'all-cached-nodes' @cache = ActiveSupport::Cache::MemoryStore.new(size: 64.megabytes) @app_link = '/' @source_roots = {} @hierarchy = {} @history_limit = 10 end def cache_store=(*args) @cache = ActiveSupport::Cache.lookup_store(*args) if @cache.options[:namespace].blank? @cache.options[:namespace] = :flexite end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flexite-0.0.7 | lib/flexite/configuration.rb |
flexite-0.0.6 | lib/flexite/configuration.rb |
flexite-0.0.5 | lib/flexite/configuration.rb |