module App
This is a cache module, which keeps entries for a certain time period, stored away in a redis store.
Entries are packed via Marshal.
Constants
- INTENDATIONS
Attributes
env[RW]
Public Class Methods
logger()
click to toggle source
# File lib/app/app/logger.rb, line 4 def self.logger @logger end
logger=(logger)
click to toggle source
# File lib/app/app/logger.rb, line 16 def self.logger=(logger) logger.formatter = proc do |severity, datetime, progname, msg| intend = INTENDATIONS[severity] || INTENDATIONS["FATAL"] "#{intend} #{msg}\n" end @logger = logger end
Public Instance Methods
cached(key, max_age = Cache::DEFAULT_MAX_AGE, &block)
click to toggle source
# File lib/app/app/cache.rb, line 92 def cached(key, max_age = Cache::DEFAULT_MAX_AGE, &block) Cache.cached(key, max_age, &block) end
config()
click to toggle source
# File lib/app/app/config.rb, line 55 def config Config.current end