@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface Command
Parameters: Parameters can be referenced by their name
:myArg or index
?0. Additional, not referenced
parameters are appended to the command in the order of their appearance. Declared parameters are matched against
RedisCodec for codec resolution. Additional parameter types such as
control execution behavior and are not added to command arguments.
@Command("SET ?0 ?1") public String setKey(String key, String value) @Command("SET :key :value") public String setKeyNamed(@Param("key") String key, @Param("value") String value)
Implementation notes: A
value() is split into command segments of which each segment is represented as ASCII
string or parameter reference.
public abstract String value
Copyright © 2019 lettuce.io. All rights reserved.