execute any redis function without any interpretation from Lucee.
Requires Extension: Redis driver
RedisCommand( arguments=any, async=boolean, listener=any, cache=string );
Argument |
Description |
Default |
arguments
any,
required
|
arguments you wanna pass, can be a string or a string array.
|
|
async
boolean,
optional
|
Execute the command in a separate thread, if set to true pass a listener to get the result of the errors.
|
false
|
listener
any,
optional
|
Listener only used when argument async is set to true. This can be a component or a struct containing functions with the following names.
- onSucess(result) to get the result of a successful execution.
- onError(exception) to get the exception in case of an error.
Alias:
component, cfc
|
|
cache
string,
optional
|
name of the cache to use, this must be a redis cache.
Alias:
cacheName
|
|
Examples
There are currently no examples for this function
17,536ms WARN No examples for function rediscommand
See also