Luascript
Easy Lua Handling
Install / Use
/learn @RedisLabs/LuascriptREADME
LuaScript - easily run Lua Redis scripts with Jedis
This library provides a nicer interface to handling Lua scripts with Jedis.
The idea is simple - instead of loading the script to redis, managing SHAs etc - just wrap it in a LuaScript object.
Scripts can be raw lua code, or loaded from project resources.
Scripts can then be called with or without arguments.
Usage example
import com.redislabs.luascript.LuaScript;
// loading a script from resource, and caching it on a redis server
LuaScript s = LuaScript.fromResource("lua/simple.lua", "redis://localhost:6379");
// now calling it is done simply with
Object o = s.execute();
Scripts with arguments can be called like so:
// the first argument is the number of keys in the variadic argument list
s.execute(1, key, value1, value2);
// or with lists of strings and keys
s.execute(keys, args);
Scripts can also be used with pipelines or existing Jedis objects:
Jedis conn = new Jedis(...);
s.execute(conn);
Pipeline pipe = conn.pipelined();
// note that executing on pipelines does not sync the pipeline
s.execute(pipe);
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
