redis_web_manager 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/redis_web_manager/data.rb +2 -2
- data/lib/redis_web_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90403c4f344a825c76fabb3696d76ba56b017a76b4cc97005d3679deef2012d9
|
4
|
+
data.tar.gz: 9c79268b3093e83f1d9be414623a54f6b3e274cc61100df165a56d2064c0a028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f035849f1f47258dbcfbffa026d4efe6d95fcf3fa38275f83975708bffffb1d0e682910cb53d9919faca2b112e6345c34a8bb149ca93d5f9b7fad544f6410a4
|
7
|
+
data.tar.gz: 705c2ace1f9f1f89dab6705d8d85b8b8bebcd14d495a3f434329af4ef0d6ed0d37b38d150bbea96b071cc5a5b062ac4fd678c32b19d99fefb4a390db65f55350
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -94,7 +94,7 @@ class DashboardWorker
|
|
94
94
|
include Sidekiq::Worker
|
95
95
|
|
96
96
|
def perform
|
97
|
-
data = RedisWebManager::Data.new
|
97
|
+
data = RedisWebManager::Data.new(:default)
|
98
98
|
data.perform
|
99
99
|
end
|
100
100
|
end
|
@@ -121,7 +121,7 @@ class DashboardJob
|
|
121
121
|
include SuckerPunch::Job
|
122
122
|
|
123
123
|
def perform
|
124
|
-
data = RedisWebManager::Data.new
|
124
|
+
data = RedisWebManager::Data.new(:default)
|
125
125
|
data.perform
|
126
126
|
end
|
127
127
|
end
|
@@ -11,7 +11,7 @@ module RedisWebManager
|
|
11
11
|
def perform
|
12
12
|
now = Time.now.to_i
|
13
13
|
seconds = (now + lifespan.to_i) - now
|
14
|
-
redis.setex("#{
|
14
|
+
redis.setex("#{BASE}_#{instance}_#{now}", seconds, serialize.to_json)
|
15
15
|
end
|
16
16
|
|
17
17
|
def flush
|
@@ -21,7 +21,7 @@ module RedisWebManager
|
|
21
21
|
private
|
22
22
|
|
23
23
|
def data
|
24
|
-
@data ||= redis.scan_each(match: "#{
|
24
|
+
@data ||= redis.scan_each(match: "#{BASE}_#{instance}_*").to_a
|
25
25
|
end
|
26
26
|
|
27
27
|
def lifespan
|