redi 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/lib/redi.rb +5 -1
- data/lib/redi/pool.rb +4 -0
- data/lib/redi/version.rb +1 -1
- metadata +75 -47
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use --create
|
1
|
+
rvm use --create @redi
|
data/lib/redi.rb
CHANGED
@@ -13,7 +13,7 @@ class Redi
|
|
13
13
|
psubscribe publish punsubscribe subscribe unsubscribe
|
14
14
|
discard exec multi unwatch watch
|
15
15
|
auth echo ping quit select
|
16
|
-
bgrewriteaof bgsave config dbsize debug
|
16
|
+
bgrewriteaof bgsave config dbsize debug info lastsave monitor save shutdown slaveof slowlog sync
|
17
17
|
]
|
18
18
|
|
19
19
|
### raise exceptions on unimplemented/unknown commands, delegate
|
@@ -26,6 +26,10 @@ class Redi
|
|
26
26
|
pool.redis_by_key( args.first ).send( cmd, *args )
|
27
27
|
end
|
28
28
|
|
29
|
+
def self.flushdb
|
30
|
+
pool.flushdb
|
31
|
+
end
|
32
|
+
|
29
33
|
def self.flushall
|
30
34
|
pool.flushall
|
31
35
|
end
|
data/lib/redi/pool.rb
CHANGED
data/lib/redi/version.rb
CHANGED
metadata
CHANGED
@@ -1,59 +1,77 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: redi
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Todd Fisher
|
9
14
|
- Ben Bleything
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
18
|
+
|
19
|
+
date: 2011-11-10 00:00:00 -05:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
16
23
|
name: rake
|
17
|
-
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
26
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
23
34
|
type: :development
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
27
37
|
name: redis
|
28
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
40
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
34
48
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
38
51
|
name: redis-namespace
|
39
|
-
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
54
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
45
62
|
type: :runtime
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
to more severs later
|
50
|
-
email:
|
63
|
+
version_requirements: *id003
|
64
|
+
description: hash keys to intermediate buckets allowing you to more easily scale out to more severs later
|
65
|
+
email:
|
51
66
|
- todd.fisher@livingsocial.com
|
52
67
|
- ben@bleything.net
|
53
68
|
executables: []
|
69
|
+
|
54
70
|
extensions: []
|
71
|
+
|
55
72
|
extra_rdoc_files: []
|
56
|
-
|
73
|
+
|
74
|
+
files:
|
57
75
|
- .rvmrc
|
58
76
|
- ChangeLog.md
|
59
77
|
- Gemfile
|
@@ -67,29 +85,39 @@ files:
|
|
67
85
|
- lib/redi/version.rb
|
68
86
|
- redi.gemspec
|
69
87
|
- test/test_redi.rb
|
88
|
+
has_rdoc: true
|
70
89
|
homepage: http://livingsocial.com/
|
71
90
|
licenses: []
|
91
|
+
|
72
92
|
post_install_message:
|
73
93
|
rdoc_options: []
|
74
|
-
|
94
|
+
|
95
|
+
require_paths:
|
75
96
|
- lib
|
76
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
98
|
none: false
|
78
|
-
requirements:
|
79
|
-
- -
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
|
82
|
-
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
hash: 3
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
version: "0"
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
107
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
hash: 3
|
112
|
+
segments:
|
113
|
+
- 0
|
114
|
+
version: "0"
|
88
115
|
requirements: []
|
116
|
+
|
89
117
|
rubyforge_project: redi
|
90
|
-
rubygems_version: 1.
|
118
|
+
rubygems_version: 1.5.2
|
91
119
|
signing_key:
|
92
120
|
specification_version: 3
|
93
121
|
summary: Redi multi redis scaling "to infinity and beyond!"
|
94
|
-
test_files:
|
122
|
+
test_files:
|
95
123
|
- test/test_redi.rb
|