fluent-plugin-redis-store-liu 0.1.1 → 0.1.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/fluent-plugin-redis-store-liu.gemspec +1 -1
- data/lib/fluent/plugin/out_redis_store.rb +3 -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: a974fee015ffbe30a99c3fcfd3a73ccc99a81a58
|
4
|
+
data.tar.gz: c536f0e8c801b603bc23fea851475eae009be327
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eca011c73bceeb591356d759e3466af3a0d8237a37cf5a33cfb1562257a9c5983821f1ae4199e3fe1aca988d66b3b7206d3e205a1964ace3024e6858e2ca34a2
|
7
|
+
data.tar.gz: '05184a0519ba471a590cf7e2f97a8e77bcabf18475e51abd9e43a80ffd452f2d8a9e93980c52fe38477b343877f0cd02f0c9b7d5e7238af8aaf30fcae69110f6'
|
data/README.md
CHANGED
@@ -83,7 +83,7 @@ To determine what _value_ in every event data to be srtored, you have two option
|
|
83
83
|
Installation
|
84
84
|
------------
|
85
85
|
|
86
|
-
|
86
|
+
gem install fluent-plugin-redis-store-liu
|
87
87
|
|
88
88
|
Configuration
|
89
89
|
-------------
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-redis-store-liu"
|
4
4
|
gem.email = "liuhao7860286@126.com"
|
5
|
-
gem.version = "0.1.
|
5
|
+
gem.version = "0.1.2"
|
6
6
|
gem.authors = ["moaikids", "HANAI Tohru aka pokehanai"]
|
7
7
|
gem.licenses = ["Apache License Version 2.0"]
|
8
8
|
gem.summary = %q{Redis(zset/set/list/string/publish) output plugin for Fluentd}
|
@@ -26,6 +26,7 @@ module Fluent
|
|
26
26
|
|
27
27
|
def initialize
|
28
28
|
super
|
29
|
+
require 'oj'
|
29
30
|
require 'redis'
|
30
31
|
require 'msgpack'
|
31
32
|
end
|
@@ -203,7 +204,8 @@ module Fluent
|
|
203
204
|
value = traverse(record, @value_path)
|
204
205
|
case @format_type
|
205
206
|
when 'json'
|
206
|
-
value.to_json
|
207
|
+
#value.to_json
|
208
|
+
value = Oj.dump(value)
|
207
209
|
when 'msgpack'
|
208
210
|
value.to_msgpack
|
209
211
|
else
|