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

'+'
VERSION =

The version of the gem

'1.3.1'

Class Method Summary collapse

Class Method Details

.cacheObject


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

def self.cache
  config.cache_store
end

.configObject


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

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

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

Yields:


29
30
31
# File 'lib/cache_crispies.rb', line 29

def self.configure
  yield config
end