调用下一页
调用覆盖命令或原始命令本身的下一个执行。callNextArray 的更灵活版本。
Redis 堆栈 |
---|
public static java.lang.Object callNext(java.lang.String... args)
When you override a Redis command with the
CommandOverrider
, use callNext
to run the next execution that overrides the command or the original command itself.
It is a more flexible version of callNextArray
since the list of string arguments does not have to be an explicit String[]
object. This allows function calls like: callNext("key", "value")
.
Parameters
Name
Type
Description
args
string
Redis command arguments
Returns
Returns the command result. It could be a string or an array of strings, depending on the command.
Examples
Without String[]
:
GearsBuilder.callNext("restaurant:1", "reviews", "50");
With String[]
:
GearsBuilder.callNext(new String[]{"restaurant:1", "reviews", "50"});
On this page