-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add database and some other commands in pipeline (#2832)
- Loading branch information
Showing
3 changed files
with
108 additions
and
9 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
30 changes: 30 additions & 0 deletions
30
src/main/java/redis/clients/jedis/commands/DatabasePipelineCommands.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package redis.clients.jedis.commands; | ||
|
||
import redis.clients.jedis.Response; | ||
import redis.clients.jedis.params.MigrateParams; | ||
|
||
public interface DatabasePipelineCommands { | ||
|
||
Response<String> select(int index); | ||
|
||
Response<Long> dbSize(); | ||
|
||
Response<String> swapDB(int index1, int index2); | ||
|
||
Response<Long> move(String key, int dbIndex); | ||
|
||
Response<Long> move(byte[] key, int dbIndex); | ||
|
||
Response<Boolean> copy(String srcKey, String dstKey, int db, boolean replace); | ||
|
||
Response<Boolean> copy(byte[] srcKey, byte[] dstKey, int db, boolean replace); | ||
|
||
Response<String> migrate(String host, int port, byte[] key, int destinationDB, int timeout); | ||
|
||
Response<String> migrate(String host, int port, int destinationDB, int timeout, MigrateParams params, byte[]... keys); | ||
|
||
Response<String> migrate(String host, int port, String key, int destinationDB, int timeout); | ||
|
||
Response<String> migrate(String host, int port, int destinationDB, int timeout, MigrateParams params, String... keys); | ||
|
||
} |
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