eval(
script: str, // Lua script to execute
numkeys: int, // Number of keys in the script
*keys_and_args: Union[KeyT, EncodableT] // Keys and arguments for the script
) → Union[Awaitable[str], str] // Script execution result
eval(
script: RedisArgument, // Lua script to execute
options: EvalOptions // Script execution options including keys and arguments
) → ReplyUnion // Script execution result
Possible errors
- BUSY:
SimpleError (test with err.message.startsWith('BUSY'))
- CLUSTERDOWN:
SimpleError (test with err.message.startsWith('CLUSTERDOWN'))
- ERR wrong number of arguments:
SimpleError
- MASTERDOWN:
SimpleError (test with err.message.startsWith('MASTERDOWN'))
- MISCONF:
SimpleError (test with err.message.startsWith('MISCONF'))
- NOPERM:
SimpleError (test with err.message.startsWith('NOPERM'))
- NOREPLICAS:
SimpleError (test with err.message.startsWith('NOREPLICAS'))
- OOM:
SimpleError (test with err.message.startsWith('OOM'))
- READONLY:
SimpleError (test with err.message.startsWith('READONLY'))
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
eval(
script: string | Buffer,
numkeys: number | string,
callback?: Callback<unknown>
) → Result<unknown, Context>
eval(
script: string | Buffer,
numkeys: number | string,
...args: (string | Buffer | number)[],
callback: Callback<unknown>
) → Result<unknown, Context>
eval(
script: string | Buffer,
numkeys: number | string,
...args: (string | Buffer | number)[]
) → Result<unknown, Context>
eval(
script: string | Buffer,
numkeys: number | string,
...keys: RedisKey[],
callback: Callback<unknown>
) → Result<unknown, Context>
eval(
script: string | Buffer,
numkeys: number | string,
keys: RedisKey[],
callback: Callback<unknown>
) → Result<unknown, Context>
Possible errors
- BUSY:
ReplyError (test with err.message.startsWith('BUSY'))
- CLUSTERDOWN:
ReplyError (test with err.message.startsWith('CLUSTERDOWN'))
- ERR wrong number of arguments:
ReplyError
- MASTERDOWN:
ReplyError (test with err.message.startsWith('MASTERDOWN'))
- MISCONF:
ReplyError (test with err.message.startsWith('MISCONF'))
- NOPERM:
ReplyError (test with err.message.startsWith('NOPERM'))
- NOREPLICAS:
ReplyError (test with err.message.startsWith('NOREPLICAS'))
- OOM:
ReplyError (test with err.message.startsWith('OOM'))
- READONLY:
ReplyError (test with err.message.startsWith('READONLY'))
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
eval(
script: String, // Lua script to execute
keyCount: int, // Number of keys in the script
params: String... // Keys and arguments for the script
) → Object // Script execution result
eval(
script: String, // Lua script to execute
keys: List<String>, // Keys for the script
args: List<String> // Arguments for the script
) → Object // Script execution result
eval(
script: String, // Lua 5.1 script
type: ScriptOutputType, // Output type
keys: K... // The keys
) → <T> T // Script result
eval(
script: byte[], // Lua 5.1 script
type: ScriptOutputType, // Output type
keys: K... // The keys
) → <T> T // Script result
eval(
script: String, // Lua 5.1 script
type: ScriptOutputType, // Output type
keys: K[], // The keys
values: V... // The values
) → <T> T // Script result
eval(
script: byte[], // Lua 5.1 script
type: ScriptOutputType, // Output type
keys: K[], // The keys
values: V... // The values
) → <T> T // Script result
eval(
script: String, // Lua 5.1 script
type: ScriptOutputType, // The type
keys: K... // The keys
) → <T> RedisFuture<T> // Script result
eval(
script: byte[], // Lua 5.1 script
type: ScriptOutputType, // The type
keys: K... // The keys
) → <T> RedisFuture<T> // Script result
eval(
script: String, // Lua 5.1 script
type: ScriptOutputType, // The type
keys: K[], // The keys
values: V... // The values
) → <T> RedisFuture<T> // Script result
eval(
script: byte[], // Lua 5.1 script
type: ScriptOutputType, // The type
keys: K[], // The keys
values: V... // The values
) → <T> RedisFuture<T> // Script result
eval(
script: String, // Lua 5.1 script
type: ScriptOutputType, // The type
keys: K... // The keys
) → <T> Flux<T> // Script result
eval(
script: byte[], // Lua 5.1 script
type: ScriptOutputType, // The type
keys: K... // The keys
) → <T> Flux<T> // Script result
eval(
script: String, // Lua 5.1 script
type: ScriptOutputType, // The type
keys: K[], // The keys
values: V... // The values
) → <T> Flux<T> // Script result
eval(
script: byte[], // Lua 5.1 script
type: ScriptOutputType, // The type
keys: K[], // The keys
values: V... // The values
) → <T> Flux<T> // Script result
Eval(
ctx: context.Context, // Context for the operation
script: string, // Lua script to execute
keys: []string, // Keys for the script
args: ...interface{} // Arguments for the script
) → *Cmd // Script execution result
Possible errors
- BUSY:
redis.Error (test with redis.HasErrorPrefix(err, "BUSY"))
- CLUSTERDOWN:
redis.Error (test with redis.IsClusterDownError(err))
- ERR wrong number of arguments:
redis.Error
- MASTERDOWN:
redis.Error (test with redis.IsMasterDownError(err))
- MISCONF:
redis.Error (test with redis.HasErrorPrefix(err, "MISCONF"))
- NOPERM:
redis.Error (test with redis.IsPermissionError(err))
- NOREPLICAS:
redis.Error (test with redis.IsNoReplicasError(err))
- OOM:
redis.Error (test with redis.IsOOMError(err))
- READONLY:
redis.Error (test with redis.IsReadOnlyError(err))
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ScriptEvaluate(
script: string, // Lua script to execute
keys: RedisKey[]?, // Keys for the script
values: RedisValue[]?, // Arguments for the script
flags: CommandFlags // Command flags
) → RedisResult // Script execution result
ScriptEvaluateAsync(
script: string, // Lua script to execute
keys: RedisKey[]?, // Keys for the script
values: RedisValue[]?, // Arguments for the script
flags: CommandFlags // Command flags
) → Task<RedisResult> // Script execution result
eval(
$script: string, // Lua script to execute
$numkeys: int, // Number of keys in the script
...$keyOrArg: string // Keys and arguments for the script
) → mixed // Script execution result
Possible errors
- BUSY:
Predis\Response\ServerException (test with $e->getErrorType() === 'BUSY')
- CLUSTERDOWN:
Predis\Response\ServerException (test with $e->getErrorType() === 'CLUSTERDOWN')
- ERR wrong number of arguments:
Predis\Response\ServerException
- MASTERDOWN:
Predis\Response\ServerException (test with $e->getErrorType() === 'MASTERDOWN')
- MISCONF:
Predis\Response\ServerException (test with $e->getErrorType() === 'MISCONF')
- NOPERM:
Predis\Response\ServerException (test with $e->getErrorType() === 'NOPERM')
- NOREPLICAS:
Predis\Response\ServerException (test with $e->getErrorType() === 'NOREPLICAS')
- OOM:
Predis\Response\ServerException (test with $e->getErrorType() === 'OOM')
- READONLY:
Predis\Response\ServerException (test with $e->getErrorType() === 'READONLY')
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
eval(
*args: Array // the script String, then optional keys and argv arrays, or a Hash with :keys and :argv
) → Object // depends on the script
redis-rs has no dedicated method for this command. Send it with redis::cmd.
redis-rs has no dedicated method for this command. Send it with redis::cmd.