MCPcopy Create free account
hub / github.com/apache/kvrocks / SetGlobalArray

Function SetGlobalArray

src/storage/scripting.cc:1484–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1482}
1483
1484void SetGlobalArray(lua_State *lua, const std::string &var, const std::vector<std::string> &elems) {
1485 PushArray(lua, elems);
1486 lua_setglobal(lua, var.c_str());
1487}
1488
1489void PushArray(lua_State *lua, const std::vector<std::string> &elems) {
1490 lua_newtable(lua);

Callers 1

EvalGenericCommandFunction · 0.85

Calls 1

PushArrayFunction · 0.85

Tested by

no test coverage detected