Executes a Lua script that does not require any keys or arguments.
Executes a Lua script that does not require any keys or arguments.
set key
result handler
2.6.0
if an error occurs while running the script
[[scredis.exceptions.RedisProtocolException]]if the value returned by the script does not match with the result handler
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
result handler
2.6.0
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 value returned by the script does not match with the result handler
Executes a cached Lua script with arguments by its SHA1 digest.
Executes a cached Lua script with arguments by its SHA1 digest.
the SHA1 digest
arguments to be used in the script
result handler
2.6.0
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 value returned by the script does not match with the result handler
Executes a cached Lua script with keys parameter by its SHA1 digest.
Executes a cached Lua script with keys parameter by its SHA1 digest.
the SHA1 digest
keys to be used in the script
result handler
2.6.0
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 value returned by the script does not match with the result handler
Executes a cached Lua script with keys and arguments by its SHA1 digest.
Executes a cached Lua script with keys and arguments by its SHA1 digest.
the SHA1 digest
keys to be used in the script
arguments to be used in the script
result handler
2.6.0
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 value returned by the script does not match with the result handler
Executes a Lua script with arguments.
Executes a Lua script with arguments.
set key
arguments to be used in the script
result handler
2.6.0
if an error occurs while running the script
[[scredis.exceptions.RedisProtocolException]]if the value returned by the script does not match with the result handler
Executes a Lua script with keys parameter.
Executes a Lua script with keys parameter.
set key
keys to be used in the script
result handler
2.6.0
if an error occurs while running the script
[[scredis.exceptions.RedisProtocolException]]if the value returned by the script does not match with the result handler
Executes a Lua script with keys and arguments.
Executes a Lua script with keys and arguments.
set key
keys to be used in the script
arguments to be used in the script
result handler
2.6.0
if an error occurs while running the script
[[scredis.exceptions.RedisProtocolException]]if the value returned by the script does not match with the result handler
Checks existence of scripts in the script cache.
Checks existence of scripts in the script cache.
the SHA1 digest to check for
additional digests to check for
indexed sequence of booleans where true means the script is 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
if a compilation error occurs
The script is guaranteed to stay in the script cache forever (unless SCRIPT FLUSH is called).
This trait implements asynchronous scripting commands.