Class: Rack::Cachely
- Inherits:
-
Object
- Object
- Rack::Cachely
- Defined in:
- lib/rack-cachely.rb,
lib/rack-cachely/key.rb,
lib/rack-cachely/store.rb,
lib/rack-cachely/config.rb,
lib/rack-cachely/context.rb,
lib/rack-cachely/version.rb
Defined Under Namespace
Classes: Config, Context, Key, Store
Constant Summary collapse
- VERSION =
"0.4.1"
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ Cachely
constructor
A new instance of Cachely.
Constructor Details
#initialize(app, options = {}) ⇒ Cachely
Returns a new instance of Cachely.
17 18 19 20 |
# File 'lib/rack-cachely.rb', line 17 def initialize(app, = {}) @app = app self.class.config = Rack::Cachely::Config.new() end |
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
28 29 30 |
# File 'lib/rack-cachely.rb', line 28 def config @config end |
Instance Method Details
#call(env) ⇒ Object
22 23 24 |
# File 'lib/rack-cachely.rb', line 22 def call(env) Context.new(@app).call(env) end |