rack-cache 1.5.1 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +10 -0
- data/README.md +28 -9
- data/lib/rack/cache.rb +1 -1
- data/lib/rack/cache/app_engine.rb +48 -0
- data/lib/rack/cache/appengine.rb +2 -52
- data/lib/rack/cache/cache_control.rb +209 -0
- data/lib/rack/cache/cachecontrol.rb +2 -208
- data/lib/rack/cache/entity_store.rb +377 -0
- data/lib/rack/cache/entitystore.rb +2 -341
- data/lib/rack/cache/meta_store.rb +429 -0
- data/lib/rack/cache/metastore.rb +2 -418
- data/lib/rack/cache/request.rb +1 -1
- data/lib/rack/cache/response.rb +1 -1
- data/lib/rack/cache/storage.rb +4 -2
- metadata +6 -2
data/lib/rack/cache/request.rb
CHANGED
data/lib/rack/cache/response.rb
CHANGED
data/lib/rack/cache/storage.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'uri'
|
2
|
-
require 'rack/cache/
|
3
|
-
require 'rack/cache/
|
2
|
+
require 'rack/cache/meta_store'
|
3
|
+
require 'rack/cache/entity_store'
|
4
4
|
|
5
5
|
module Rack::Cache
|
6
6
|
|
@@ -29,6 +29,7 @@ module Rack::Cache
|
|
29
29
|
end
|
30
30
|
|
31
31
|
private
|
32
|
+
|
32
33
|
def create_store(type, uri)
|
33
34
|
if uri.respond_to?(:scheme) || uri.respond_to?(:to_str)
|
34
35
|
uri = URI.parse(uri) unless uri.respond_to?(:scheme)
|
@@ -53,6 +54,7 @@ module Rack::Cache
|
|
53
54
|
end
|
54
55
|
|
55
56
|
public
|
57
|
+
|
56
58
|
@@singleton_instance = new
|
57
59
|
def self.instance
|
58
60
|
@@singleton_instance
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -124,11 +124,15 @@ files:
|
|
124
124
|
- README.md
|
125
125
|
- lib/rack-cache.rb
|
126
126
|
- lib/rack/cache.rb
|
127
|
+
- lib/rack/cache/app_engine.rb
|
127
128
|
- lib/rack/cache/appengine.rb
|
129
|
+
- lib/rack/cache/cache_control.rb
|
128
130
|
- lib/rack/cache/cachecontrol.rb
|
129
131
|
- lib/rack/cache/context.rb
|
132
|
+
- lib/rack/cache/entity_store.rb
|
130
133
|
- lib/rack/cache/entitystore.rb
|
131
134
|
- lib/rack/cache/key.rb
|
135
|
+
- lib/rack/cache/meta_store.rb
|
132
136
|
- lib/rack/cache/metastore.rb
|
133
137
|
- lib/rack/cache/options.rb
|
134
138
|
- lib/rack/cache/request.rb
|