quredis 0.5.1 → 0.5.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.
- data/Gemfile +6 -0
- data/Gemfile.lock +23 -0
- data/README.md +46 -0
- data/lib/quredis/version.rb +1 -1
- data/quredis.gemspec +1 -0
- metadata +19 -1
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
json (1.7.3)
|
5
|
+
rack (1.4.1)
|
6
|
+
rack-protection (1.2.0)
|
7
|
+
rack
|
8
|
+
redis (3.0.1)
|
9
|
+
sinatra (1.3.2)
|
10
|
+
rack (~> 1.3, >= 1.3.6)
|
11
|
+
rack-protection (~> 1.2)
|
12
|
+
tilt (~> 1.3, >= 1.3.3)
|
13
|
+
thor (0.15.2)
|
14
|
+
tilt (1.3.3)
|
15
|
+
|
16
|
+
PLATFORMS
|
17
|
+
ruby
|
18
|
+
|
19
|
+
DEPENDENCIES
|
20
|
+
json
|
21
|
+
redis
|
22
|
+
sinatra
|
23
|
+
thor
|
data/README.md
CHANGED
@@ -44,6 +44,52 @@ Custom queue names can be passed as options to `quredis` method:
|
|
44
44
|
end
|
45
45
|
|
46
46
|
|
47
|
+
Quredis CLI
|
48
|
+
-----------
|
49
|
+
Quredis comes equiped with a CLI. It supports listing queues, purging a list in a queue and retrying messages stuck in transit and escape queues.
|
50
|
+
|
51
|
+
> quredis help
|
52
|
+
Tasks:
|
53
|
+
quredis destroy queue_name # destroy the specified queue queue
|
54
|
+
quredis help [TASK] # Describe available tasks or one spec...
|
55
|
+
quredis ls # list queues
|
56
|
+
quredis purge queue_name queue_type # purges queue_name queue_type
|
57
|
+
quredis retry queue_name queue_type # re-enqueues queue type
|
58
|
+
quredis version # version
|
59
|
+
quredis web # start webapp
|
60
|
+
|
61
|
+
To purge the escape queue of `mail` queue in the consumer example above:
|
62
|
+
|
63
|
+
> quredis purge mail escape
|
64
|
+
Note that this will remove all mesage in the escape queue ('trash').
|
65
|
+
|
66
|
+
To retry the escape queue of `mail` queue in the consumer example above:
|
67
|
+
|
68
|
+
> quredis retry mail escape
|
69
|
+
It will re enqueue all the messages from escape queue ('trash') to ingress queue ('read_later').
|
70
|
+
|
71
|
+
> quredis web
|
72
|
+
|
73
|
+
Launches a web interface to monitor quredis queues. See next section for details.
|
74
|
+
|
75
|
+
Quredis Web
|
76
|
+
-----------
|
77
|
+
`quredis web` starts a web app to monitor quredis queues. You can specify redis host, port and web app port etc via command line arguments.
|
78
|
+
|
79
|
+
> quredis help web
|
80
|
+
Usage:
|
81
|
+
quredis web
|
82
|
+
|
83
|
+
Options:
|
84
|
+
-H, [--redis-host=REDIS_HOST] # redis server host
|
85
|
+
-P, [--redis-port=N] # redis server port
|
86
|
+
-b, [--bind=BIND] # webapp IP address to bind to (default: 0.0.0.0)
|
87
|
+
-p, [--port=N] # webapp Port to listen on
|
88
|
+
-s, [--server=SERVER] # specify rack server/handler (default is thin)
|
89
|
+
|
90
|
+
start webapp
|
91
|
+
|
92
|
+

|
47
93
|
|
48
94
|
Configuring Redis
|
49
95
|
-----------
|
data/lib/quredis/version.rb
CHANGED
data/quredis.gemspec
CHANGED
@@ -9,6 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.add_dependency "redis"
|
10
10
|
s.add_dependency "json"
|
11
11
|
s.add_dependency "thor"
|
12
|
+
s.add_dependency "sinatra"
|
12
13
|
s.description = "quredis (pronounced 'kurdis') is a little DSL for redis safe queues using brpoplpush.
|
13
14
|
"
|
14
15
|
s.authors = ["Chandra Patni"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quredis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -59,6 +59,22 @@ dependencies:
|
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: sinatra
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
62
78
|
description: ! "quredis (pronounced 'kurdis') is a little DSL for redis safe queues
|
63
79
|
using brpoplpush. \n"
|
64
80
|
email: chandra.patni@gmail.com
|
@@ -68,6 +84,8 @@ extensions: []
|
|
68
84
|
extra_rdoc_files: []
|
69
85
|
files:
|
70
86
|
- .gitignore
|
87
|
+
- Gemfile
|
88
|
+
- Gemfile.lock
|
71
89
|
- Procfile
|
72
90
|
- README.md
|
73
91
|
- Rakefile
|