Lucee Function Reference
rediscommand()
execute any redis function without any interpretation from Lucee.
Example
rediscommand(any arguments,[boolean async,[any listener,[string cache]]]):any
Category
cache,redis
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| arguments | any | Yes | arguments you wanna pass, can be a string or a string array. | |
| async | boolean | No | false | Execute the command in a separate thread, if set to true pass a listener to get the result ot the errors. |
| listener | any | No |
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. |
|
| cache | string | No | name of the cache to use, this must be a redis cache. |