Skip to content

Instantly share code, notes, and snippets.

Aaron Dunnington aarondunnington

View GitHub Profile
@aarondunnington
aarondunnington / queue.lua
Created Mar 21, 2015
Array-Based Queue on Aerospike
View queue.lua
local ENQUEUE_CAPACITY = 100
local function l_exists(rec, bin)
if aerospike:exists(rec)
and rec[bin] ~= nil
and type(rec) == "userdata" then
return true
end
return false
end
You can’t perform that action at this time.