startback 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/startback/caching/no_store.rb +28 -0
- data/lib/startback/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02a1394dae5500a58aca8fddd4609c760d0b362278d852d49d439c77f7283aed
|
4
|
+
data.tar.gz: 70e6e5a15b640bf567c1dc49031a71af83c47448398426cac235ef3857ce007e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baf500e6393b0ccf486f247d3504782cc9f3bd8a88d8623b4d04000a5e99ea28d8fa15449ddd6067ade8b05e3babaa4158f1c6583d571ca29e296490db3482a1
|
7
|
+
data.tar.gz: a6f5bc2c8d5ffd6c66b1ca58f2eabfb4965826e11c5946ae2f6964c54baf9a11bec90ddce0430d9eb7bd2c1b9e7c7513a6fd352f66abdb06e1ee5abe45000721
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Startback
|
2
|
+
module Caching
|
3
|
+
#
|
4
|
+
# Caching store implementation that caches nothing at all.
|
5
|
+
#
|
6
|
+
class NoStore
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
end
|
10
|
+
|
11
|
+
def exist?(key)
|
12
|
+
false
|
13
|
+
end
|
14
|
+
|
15
|
+
def get(key)
|
16
|
+
nil
|
17
|
+
end
|
18
|
+
|
19
|
+
def set(key, value, ttl)
|
20
|
+
value
|
21
|
+
end
|
22
|
+
|
23
|
+
def delete(key)
|
24
|
+
end
|
25
|
+
|
26
|
+
end # class NoStore
|
27
|
+
end # module Caching
|
28
|
+
end # module Startback
|
data/lib/startback/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: startback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- lib/startback/bus/memory/async.rb
|
156
156
|
- lib/startback/bus/memory/sync.rb
|
157
157
|
- lib/startback/caching/entity_cache.rb
|
158
|
+
- lib/startback/caching/no_store.rb
|
158
159
|
- lib/startback/caching/store.rb
|
159
160
|
- lib/startback/context.rb
|
160
161
|
- lib/startback/context/middleware.rb
|