Commands
3
Queries
0.91 ms
Query time
0
Failed Queries
| # | Time | Connection | Command |
|---|---|---|---|
| 1 | 0.47 ms | default | TIME |
| 2 | 0.08 ms | default | GET 'ffepgv-sso:app:wb:profiler:settings' |
| 3 | 0.37 ms | default | SCRIPT 'LOAD' 'local state = redis.call(\'GET\', KEYS[1]) local last_ms = -1 local seq = 0 if state then local a, b = string.match(state, "^(%-?%d+):(%d+)$") if a then last_ms = tonumber(a) seq = tonumber(b) end end local t = redis.call(\'TIME\') local now_ms = (tonumber(t[1]) * 1000) + math.floor(tonumber(t[2]) / 1000) if now_ms < last_ms then now_ms = last_ms end local max_seq = tonumber(ARGV[1]) if now_ms == last_ms then seq = seq + 1 if seq > max_seq then now_ms = last_ms + 1 seq = 0 end else seq = 0 end redis.call(\'SET\', KEYS[1], tostring(now_ms) .. ":" .. tostring(seq)) return { tostring(now_ms), tostring(seq) }' |