redis-stream-wrapper 0.1.0 → 0.1.1
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
- data/lib/redis/stream/wrapper.rb +10 -1
- data/lib/redis/stream/wrapper/version.rb +1 -1
- data/redis-stream-wrapper.iml +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 856ee141c6da05fb051ba1b24ab5865254b3e92408c91aa200d9a53207fb39c4
|
4
|
+
data.tar.gz: 97e7394a96d1105f252bcfbddd9368c4e720725239f3e78ee2e8545b3fc8d732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cffcbce3991d63e1569444fc5cc6cd6937f96a6ea26329f6090c245e25a827bb1864bfa70c3849a61da350d7119297f1734ec744feb6003e07d4879cbc578465
|
7
|
+
data.tar.gz: dc6779472068739485e28bb312cc71ca0361cad4dbcf5eae693e8a3f395d1787ffce56b6ab5bfdc7c28198e75de19b27f0769574bb50b9abd0780f9dbe99aca2
|
data/lib/redis/stream/wrapper.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'dry-struct'
|
2
|
-
require 'byebug'
|
3
2
|
class Redis
|
4
3
|
module Stream
|
5
4
|
class Wrapper
|
@@ -99,6 +98,16 @@ class Redis
|
|
99
98
|
@redis.xgroup(:create, stream, name, start, mkstream: create_default_stream)
|
100
99
|
end
|
101
100
|
|
101
|
+
# Get info about streams / groups and consumers.
|
102
|
+
#
|
103
|
+
# @param type - The type
|
104
|
+
# @param key - The concerned stream / group name
|
105
|
+
# @param group - The group name for consumer type
|
106
|
+
#
|
107
|
+
def info(type, key, group = nil)
|
108
|
+
@redis.xinfo(type, key, group)
|
109
|
+
end
|
110
|
+
|
102
111
|
# Delete group stream message.
|
103
112
|
#
|
104
113
|
# @param name - The group name
|
data/redis-stream-wrapper.iml
CHANGED
@@ -382,5 +382,6 @@
|
|
382
382
|
</library>
|
383
383
|
</orderEntry>
|
384
384
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.2, rbenv: 2.6.3) [gem]" level="application" />
|
385
|
+
<orderEntry type="library" scope="PROVIDED" name="dry-struct (v0.6.0, rbenv: 2.6.3) [gem]" level="application" />
|
385
386
|
</component>
|
386
387
|
</module>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-stream-wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Del Vecchio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|