typed_cache 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/typed_cache/version.rb +1 -1
- data/sig/generated/typed_cache/backends/active_support.rbs +5 -5
- data/sig/generated/typed_cache/backends/memory.rbs +2 -2
- data/sig/generated/typed_cache/store.rbs +12 -12
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dadf4193084b314da94b9144bbef5766f8898a443404ef10f66202685394622
|
4
|
+
data.tar.gz: faaa5d4542bbe2ca5716a309f4361c885217633a02b68109d6b402741516494f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c82b0271eadd1415e9064f90d7093cff83d38e27c611f634efdd4abf4b96f8b05cd878102d98320acbb2c93dd6b3932ff15bdd841e66b8a9bbe0097460cf9a2b
|
7
|
+
data.tar.gz: 895344cc495dbf7aacc384e8bcb3a89f39fc928472b7ab013421f5c3ab35565c1c84c7beb054ec09528d6a61bc7ade3d3b1c30fd948adb47177ec9c909ad18ed
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/typed_cache/version.rb
CHANGED
@@ -17,15 +17,15 @@ module TypedCache
|
|
17
17
|
def initialize: (Namespace, ::ActiveSupport::Cache::Store, ?Hash[Symbol, top]) -> void
|
18
18
|
|
19
19
|
# @rbs override
|
20
|
-
# : (cache_key) -> either[Error, Snapshot[V]]
|
20
|
+
# : (cache_key, **top) -> either[Error, Snapshot[V]]
|
21
21
|
def read: ...
|
22
22
|
|
23
23
|
# @rbs override
|
24
|
-
# : (cache_key, V) -> either[Error, Snapshot[V]]
|
24
|
+
# : (cache_key, V, **top) -> either[Error, Snapshot[V]]
|
25
25
|
def write: ...
|
26
26
|
|
27
27
|
# @rbs override
|
28
|
-
# : (Hash[cache_key, V]) -> either[Error, Array[Snapshot[V]]]
|
28
|
+
# : (Hash[cache_key, V], **top) -> either[Error, Array[Snapshot[V]]]
|
29
29
|
def write_all: ...
|
30
30
|
|
31
31
|
# @rbs override
|
@@ -33,11 +33,11 @@ module TypedCache
|
|
33
33
|
def delete: ...
|
34
34
|
|
35
35
|
# @rbs override
|
36
|
-
# : (Array[cache_key]) -> either[Error, Array[Snapshot[V]]]
|
36
|
+
# : (Array[cache_key], **top) -> either[Error, Array[Snapshot[V]]]
|
37
37
|
def read_all: ...
|
38
38
|
|
39
39
|
# @rbs override
|
40
|
-
# : (Array[cache_key]) { (CacheKey) -> V? } -> either[Error, Array[Snapshot[V]]]
|
40
|
+
# : (Array[cache_key], **top) { (CacheKey) -> V? } -> either[Error, Array[Snapshot[V]]]
|
41
41
|
def fetch_all: ...
|
42
42
|
|
43
43
|
# @rbs override
|
@@ -54,11 +54,11 @@ module TypedCache
|
|
54
54
|
def initialize: (Namespace, shared: bool, ttl: Integer) -> void
|
55
55
|
|
56
56
|
# @rbs override
|
57
|
-
# : (cache_key) -> either[Error, Snapshot[V]]
|
57
|
+
# : (cache_key, **top) -> either[Error, Snapshot[V]]
|
58
58
|
def read: ...
|
59
59
|
|
60
60
|
# @rbs override
|
61
|
-
# : (cache_key, V) -> either[Error, Snapshot[V]]
|
61
|
+
# : (cache_key, V, expires_in: Integer, expires_at: Time, **top) -> either[Error, Snapshot[V]]
|
62
62
|
def write: ...
|
63
63
|
|
64
64
|
# @rbs override
|
@@ -50,22 +50,22 @@ module TypedCache
|
|
50
50
|
def initialize_copy: (Store[V]) -> void
|
51
51
|
|
52
52
|
# Retrieves a value from the cache
|
53
|
-
# @rbs (cache_key) -> either[Error, Snapshot[V]]
|
54
|
-
def read: (cache_key) -> either[Error, Snapshot[V]]
|
53
|
+
# @rbs (cache_key, **top) -> either[Error, Snapshot[V]]
|
54
|
+
def read: (cache_key, **top) -> either[Error, Snapshot[V]]
|
55
55
|
|
56
|
-
# @rbs (Array[cache_key]) -> either[Error, Hash[cache_key, Snapshot[V]]]
|
57
|
-
def read_all: (Array[cache_key]) -> either[Error, Hash[cache_key, Snapshot[V]]]
|
56
|
+
# @rbs (Array[cache_key], **top) -> either[Error, Hash[cache_key, Snapshot[V]]]
|
57
|
+
def read_all: (Array[cache_key], **top) -> either[Error, Hash[cache_key, Snapshot[V]]]
|
58
58
|
|
59
59
|
# Retrieves a cache reference for a key
|
60
60
|
# @rbs (cache_key) -> CacheRef[V]
|
61
61
|
def ref: (cache_key) -> CacheRef[V]
|
62
62
|
|
63
63
|
# Stores a value in the cache
|
64
|
-
# @rbs (cache_key, V) -> either[Error, Snapshot[V]]
|
65
|
-
def write: (cache_key, V) -> either[Error, Snapshot[V]]
|
64
|
+
# @rbs (cache_key, V, **top) -> either[Error, Snapshot[V]]
|
65
|
+
def write: (cache_key, V, **top) -> either[Error, Snapshot[V]]
|
66
66
|
|
67
|
-
# @rbs (Hash[cache_key, V]) -> either[Error, Hash[cache_key, Snapshot[V]]]
|
68
|
-
def write_all: (Hash[cache_key, V]) -> either[Error, Hash[cache_key, Snapshot[V]]]
|
67
|
+
# @rbs (Hash[cache_key, V], **top) -> either[Error, Hash[cache_key, Snapshot[V]]]
|
68
|
+
def write_all: (Hash[cache_key, V], **top) -> either[Error, Hash[cache_key, Snapshot[V]]]
|
69
69
|
|
70
70
|
# Removes a value from the cache, returning the removed value
|
71
71
|
# @rbs (cache_key) -> either[Error, Snapshot[V]]
|
@@ -81,11 +81,11 @@ module TypedCache
|
|
81
81
|
|
82
82
|
# Fetches a value from cache, computing and storing it if not found
|
83
83
|
# This is an atomic operation that combines read and write
|
84
|
-
# @rbs (cache_key) { () -> V } -> either[Error, Snapshot[V]]
|
85
|
-
def fetch: (cache_key) { () -> V } -> either[Error, Snapshot[V]]
|
84
|
+
# @rbs (cache_key, **top) { () -> V } -> either[Error, Snapshot[V]]
|
85
|
+
def fetch: (cache_key, **top) { () -> V } -> either[Error, Snapshot[V]]
|
86
86
|
|
87
|
-
# @rbs (Array[cache_key]) { (CacheKey) -> V } -> either[Error, Array[Snapshot[V]]]
|
88
|
-
def fetch_all: (Array[cache_key]) { (CacheKey) -> V } -> either[Error, Array[Snapshot[V]]]
|
87
|
+
# @rbs (Array[cache_key], **top) { (CacheKey) -> V } -> either[Error, Array[Snapshot[V]]]
|
88
|
+
def fetch_all: (Array[cache_key], **top) { (CacheKey) -> V } -> either[Error, Array[Snapshot[V]]]
|
89
89
|
|
90
90
|
# @rbs () -> Instrumenter
|
91
91
|
def instrumenter: () -> Instrumenter
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typed_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Autumn Winter
|
@@ -220,7 +220,7 @@ licenses:
|
|
220
220
|
- Apache-2.0
|
221
221
|
metadata:
|
222
222
|
issue_tracker_uri: https://github.com/glossawy/typed_cache/issues
|
223
|
-
changelog_uri: https://github.com/glossawy/typed_cache/blob/main/VERSIONS.adoc#
|
223
|
+
changelog_uri: https://github.com/glossawy/typed_cache/blob/main/VERSIONS.adoc#032
|
224
224
|
license_uri: https://github.com/glossawy/typed_cache/blob/main/LICENSE
|
225
225
|
label: caching
|
226
226
|
labels: typed_cache,ruby,caching,type-safety,rails,rbs
|
metadata.gz.sig
CHANGED
Binary file
|