forked from apache/kvrocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For store key related commands, we cannot extract the store key, see apache#2051. This PR adds store_key to CommandKeyRange to represent its index. This PR handle these store key commands: - zunionstore - zinterstore - zdiffstore - georadius - georadiusbymember - geosearchstore before: ``` > command getkeys zinterstore dst 2 src1 src2 1) "src1" 2) "src2" > command getkeys GEORADIUS src 1 1 1 km store dst 1) "src" > command getkeys GEORADIUSBYMEMBER src member radius m store dst 1) "src" > command getkeys GEOSEARCHSTORE dst src frommember member byradius 10 m 1) "dst" ``` after: ``` > command getkeys zinterstore dst 2 src1 src2 1) "dst" 2) "src1" 3) "src2" > command getkeys GEORADIUS src 1 1 1 km store dst 1) "src" 2) "dst" > command getkeys GEORADIUSBYMEMBER src member radius m store dst 1) "src" 2) "dst" > command getkeys GEOSEARCHSTORE dst src frommember member byradius 10 m 1) "dst" 2) "src" ```
- Loading branch information
1 parent
4bb6954
commit 86f8d57
Showing
6 changed files
with
152 additions
and
21 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
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
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