Skip to content

Instantly share code, notes, and snippets.

@evilpacket
Created October 20, 2012 21:14
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilpacket/3924845 to your computer and use it in GitHub Desktop.
Save evilpacket/3924845 to your computer and use it in GitHub Desktop.
Available Lua functions in Redis 2.6
_G.__redis__compare_helper()
_G.assert()
_G.collectgarbage()
_G.getfenv()
_G.getmetatable()
_G.newproxy()
_G.next()
_G.pcall()
_G.print()
_G.rawequal()
_G.rawset()
_G.setmetatable()
_G.tonumber()
_G.tostring()
_G.type()
_G.unpack()
_G.xpcall()
cjson.decode()
cjson.encode()
cjson.encode_keep_buffer()
cjson.encode_max_depth()
cjson.encode_number_precision()
cjson.encode_sparse_array()
cjson.refuse_invalid_numbers()
cjson.version
cjson.null
cmsgpack.pack()
cmsgpack.unpack()
cmsgpack._COPYRIGHT
cmsgpack._DESCRIPTION
coroutine.create()
coroutine.resume()
coroutine.running()
coroutine.status()
coroutine.wrap()
coroutine.yield()
debug.debug()
debug.getfenv()
debug.gethook()
debug.getinfo()
debug.getlocal()
debug.getmetatable()
debug.getregistry()
debug.getupvalue()
debug.setfenv()
debug.sethook()
debug.setlocal()
debug.setmetatable()
debug.setupvalue()
debug.traceback()
math.abs()
math.acos()
math.asin()
math.atan()
math.atan2()
math.ceil()
math.cos()
math.cosh()
math.deg()
math.exp()
math.floor()
math.fmod()
math.frexp()
math.ldexp()
math.log()
math.log10()
math.max()
math.min()
math.mod()
math.modf()
math.pow()
math.rad()
math.random()
math.randomseed()
math.sin()
math.sinh()
math.sqrt()
math.tan()
math.tanh()
redis.LOG_DEBUG
redis.LOG_NOTICE
redis.LOG_VERBOSE
redis.LOG_WARNING
_VERSION
math.huge()
math.pi()
redis.call()
redis.log()
redis.pcall()
redis.sha1hex()
string.byte()
string.char()
string.dump()
string.find()
string.format()
string.gfind()
string.gmatch()
string.gsub()
string.len()
string.lower()
string.match()
string.rep()
string.reverse()
string.sub()
string.upper()
struct.pack()
struct.unpack()
table.concat()
table.foreach()
table.foreachi()
table.getn()
table.insert()
table.maxn()
table.remove()
table.setn()
table.sort()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment