-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve command interface commands to known CommandTypes where possible
#804 Lettuce now attempts to resolve command names derived from the command interface method name or the command annotation to a known command type which is listed in CommandType. Previously, all command types were instances of StringCommandType. This rendered options set on CommandType items unusable as the object instance was not the same. In a consequence, all commands resolved to a write intent as only CommandType instances (some of them) are configured as read-only commands. Commands are resolved case-sensitive and unknown commands are resolved to StringCommandType. Using a lowercase command name in the query annotation can be used to force a read-only command to be considered a write one and to be executed on a master node when using a master/slave setup.
- Loading branch information
Showing
2 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters