redstruct 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redstruct/factory/creation.rb +4 -4
- data/lib/redstruct/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24f641b7af2b6207244ce2e1f6cc48b4ace00501
|
4
|
+
data.tar.gz: d313d71fb27eb36fd6fb6cb34c21709fa0e1f08e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a29bff10074805abbb590a238d5e302ab3d426148c60fced3a54af99970978a24fb39815f95f6e9a382af8ae4452bd47d989ca5674ebaa761b58649114296b
|
7
|
+
data.tar.gz: 82677b93e0bfd290d9c3733b30c00daeae115de057092931635b1178c18b974c04916fb334497a509703b92e1a5db0ea2eb9ba505500af3f405bace568cfca02
|
@@ -49,9 +49,9 @@ module Redstruct
|
|
49
49
|
|
50
50
|
# Builds a Redis backed lock from the key
|
51
51
|
# @param [::String] key base key to use
|
52
|
-
# @return [Redstruct::
|
52
|
+
# @return [Redstruct::Hls::Lock]
|
53
53
|
def lock(key, **options)
|
54
|
-
return create(Redstruct::
|
54
|
+
return create(Redstruct::Hls::Lock, key, **options)
|
55
55
|
end
|
56
56
|
|
57
57
|
# Builds a Redis counter struct from the key
|
@@ -63,9 +63,9 @@ module Redstruct
|
|
63
63
|
|
64
64
|
# Builds a Redis backed queue from the key
|
65
65
|
# @param [::String] key base key to use
|
66
|
-
# @return [Redstruct::
|
66
|
+
# @return [Redstruct::Hls::Queue]
|
67
67
|
def queue(key)
|
68
|
-
return create(Redstruct::
|
68
|
+
return create(Redstruct::Hls::Queue, key)
|
69
69
|
end
|
70
70
|
|
71
71
|
# @todo The script cache is actually based on the database you will connect to. Therefore, it might be smarter to move it to the connection used?
|
data/lib/redstruct/version.rb
CHANGED