Executes a Lua script that does not require any keys or arguments.
Executes a Lua script that does not require any keys or arguments.
the LUA script
keys to be used in the script
arguments to be used in the script
2.6.0
[[scredis.exceptions.RedisErrorResponseException]]
if an error occurs while running the script
[[scredis.exceptions.RedisProtocolException]]
if the result could not be decoded by provided Decoder
Executes a cached Lua script that does not require any keys or arguments by its SHA1 digest.
Executes a cached Lua script that does not require any keys or arguments by its SHA1 digest.
the SHA1 digest
keys to be used in the script
arguments to be used in the script
2.6.0
[[scredis.exceptions.RedisErrorResponseException]]
if there is no script corresponding to the provided SHA1 digest or if an error
occurs while running the script
[[scredis.exceptions.RedisProtocolException]]
if the result could not be decoded by provided Decoder
Checks existence of scripts in the script cache.
Checks existence of scripts in the script cache.
SHA1 digest(s) to check for existence
SHA1 -> Boolean Map
where true means the script associated to the sha1 exists
in the cache
2.6.0
Removes all the scripts from the script cache.
Removes all the scripts from the script cache.
2.6.0
Kills the currently executing Lua script, assuming no write operation was yet performed by the script.
Kills the currently executing Lua script, assuming no write operation was yet performed by the script.
2.6.0
If the script already performed write operations it can not be killed in this way because it would violate Lua script atomicity contract. In such a case only SHUTDOWN NOSAVE is able to kill the script, killing the Redis process in an hard way preventing it to persist with half-written information.
Loads or stores the specified Lua script into the script cache.
Loads or stores the specified Lua script into the script cache.
the script to be loaded into the cache
the SHA1 digest of the stored script
2.6.0
[[scredis.exceptions.RedisErrorResponseException]]
if a compilation error occurs
The script is guaranteed to stay in the script cache forever (unless SCRIPT FLUSH is called).
This trait implements scripting commands.