Module: CacheCrispies
- Defined in:
- lib/cache_crispies.rb,
lib/cache_crispies/base.rb,
lib/cache_crispies/plan.rb,
lib/cache_crispies/version.rb,
lib/cache_crispies/memoizer.rb,
lib/cache_crispies/optional.rb,
lib/cache_crispies/attribute.rb,
lib/cache_crispies/condition.rb,
lib/cache_crispies/collection.rb,
lib/cache_crispies/controller.rb,
lib/cache_crispies/hash_builder.rb,
lib/cache_crispies/json_builder.rb,
lib/cache_crispies/configuration.rb
Overview
The top level namespace module for the gem
Defined Under Namespace
Modules: Controller Classes: Attribute, Base, Collection, Condition, Configuration, HashBuilder, JsonBuilder, Memoizer, Optional, Plan
Constant Summary collapse
- CACHE_KEY_PREFIX =
A prefix used in building cache key. This should be extra insurance against key conflicts and also provides an easy way to search for keys in Redis.
'cache-crispies'- CACHE_KEY_SEPARATOR =
The string to use to join parts of the cache keys together
'+'- UNDEFINED =
Magic value for undefined arguments
Object.new.freeze
- VERSION =
The version of the gem
'1.5.0'
Class Method Summary collapse
Class Method Details
.cache ⇒ Object
41 42 43 |
# File 'lib/cache_crispies.rb', line 41 def self.cache config.cache_store end |
.config ⇒ Object
37 38 39 |
# File 'lib/cache_crispies.rb', line 37 def self.config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
33 34 35 |
# File 'lib/cache_crispies.rb', line 33 def self.configure yield config end |