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/configuration.rb

Overview

The top level namespace module for the gem

Defined Under Namespace

Modules: Controller Classes: Attribute, Base, Collection, Condition, Configuration, HashBuilder, 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.4.0'

Class Method Summary collapse

Class Method Details

.cacheObject



40
41
42
# File 'lib/cache_crispies.rb', line 40

def self.cache
  config.cache_store
end

.configObject



36
37
38
# File 'lib/cache_crispies.rb', line 36

def self.config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



32
33
34
# File 'lib/cache_crispies.rb', line 32

def self.configure
  yield config
end