Module: BlockCache
- Defined in:
- lib/block_cache.rb,
lib/block_cache/version.rb
Overview
block_cache methods for caching single block responses in mongo planned to support mongoid in the future. :D -blake
attributes:
-
block_key: basic key passed to the cache_overwrite_by method that
will store and overwrite by that valid. could easily use the request.uri for content cached as json or something as such.
-
block_response: basic block of content that is returned by the block call.
WARNING: BLOCKS THAT RETURN NIL WILL OVERWRITE THE DATA. TO BE SURE RAISE ERRORS
WHEN EXITING BLOCKS WITH NIL DATA. THIS LIBRARY CURRENTLY DOSESNT PREVENT
THIS EXCEPTION.
Defined Under Namespace
Modules: ControllerMethods Classes: Record
Constant Summary collapse
- CACHE_NIL_RESPONSES =
true
- AIRBRAKE_SUPPORTED =
begin require 'airbrake' ;; true Airbrake rescue false end
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
23 24 25 |
# File 'lib/block_cache.rb', line 23 def self.included(receiver) receiver.send :include, ControllerMethods end |