fluent-plugin-redis-store-wejick 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d476378491594ac0c643411185c0af557cb2a1f7
|
4
|
+
data.tar.gz: 5c1980af060b5a2bbb9cb2366857b97341c18e0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8620d29fc6e2c7311e305624f2c0bca8ac70d6c445f2ed0582f62f93b7b40ce9b98d70caa29e3765e3cdc17cfb0342cec719f3e2b02fa29bc2c3c13cc8084d
|
7
|
+
data.tar.gz: 133afa8c8a7bd23e2e81e594bbe563fcb076b7ae22aedb62b49082f9a99b256990a6ad320c7368f9dee0bbb6819036f8e795c9ab09bd2a6663f9cbb04bc8c16d
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-redis-store-wejick"
|
4
4
|
gem.email = "wejick@gmail.com"
|
5
|
-
gem.version = "0.0.
|
5
|
+
gem.version = "0.0.4"
|
6
6
|
gem.authors = ["wejick", "Gian Giovani"]
|
7
7
|
gem.licenses = ["Apache License Version 2.0"]
|
8
8
|
gem.summary = %q{Redis(zset/set/list/string/publish) output plugin for Fluentd}
|
@@ -120,7 +120,6 @@ module Fluent
|
|
120
120
|
value = get_value_from(record)
|
121
121
|
|
122
122
|
if 0 < @tidy_string
|
123
|
-
$log.warn "tidy_string ",@tidy_string
|
124
123
|
value = tidy_up_string(value)
|
125
124
|
end
|
126
125
|
if 0 < @only_alphabet
|
@@ -130,7 +129,6 @@ module Fluent
|
|
130
129
|
end
|
131
130
|
end
|
132
131
|
if 0 < @prevent_duplicate
|
133
|
-
$log.warn "prevent duplicate ", @prevent_duplicate
|
134
132
|
@redis.lrem key.to_s, 1, value.to_s
|
135
133
|
end
|
136
134
|
if @order == 'asc'
|
@@ -140,9 +138,7 @@ module Fluent
|
|
140
138
|
end
|
141
139
|
set_key_expire key
|
142
140
|
if 0 < @value_length
|
143
|
-
|
144
|
-
script = generate_ltrim_script(key, @value_length, @order)
|
145
|
-
@redis.eval(script,0)
|
141
|
+
@redis.ltrim key, 0, @value_length - 1
|
146
142
|
end
|
147
143
|
end
|
148
144
|
|
@@ -186,7 +182,6 @@ module Fluent
|
|
186
182
|
end
|
187
183
|
|
188
184
|
def generate_ltrim_script(key, maxlen, order)
|
189
|
-
$log.warn key,maxlen,order,"\n"
|
190
185
|
script = "local key = '" + key.to_s + "'\n"
|
191
186
|
script += "local maxlen = " + maxlen.to_s + "\n"
|
192
187
|
script += "local order ='" + order.to_s + "'\n"
|
@@ -247,7 +242,6 @@ module Fluent
|
|
247
242
|
end
|
248
243
|
|
249
244
|
def set_key_expire(key)
|
250
|
-
$log.warn "set expire key ", @key_expire
|
251
245
|
if 0 < @key_expire
|
252
246
|
@redis.expire key, @key_expire
|
253
247
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-redis-store-wejick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wejick
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.5.1
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Redis(zset/set/list/string/publish) output plugin for Fluentd
|