Sha256: e9a5b909493d8f7860f47ba925fe1dd210f11bd663a3c727971d1ed25338920b

Contents?: true

Size: 207 Bytes

Versions: 2

Compression:

Stored size: 207 Bytes

Contents

local result = {}
local length = tonumber(redis.pcall('LLEN', KEYS[1]))
for i = 1, length do
   local val = redis.pcall('LPOP',KEYS[1])
   if val then
      table.insert(result,val)
   end
end
return result

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simpleworker-0.1.1 lib/simpleworker/scripts/lpopall.lua
simpleworker-0.1.0 lib/simpleworker/scripts/lpopall.lua