forked from valkey-io/valkey-glide
-
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.
Separated unwatch to have different docs for standalone (valkey-io#1597)
Separated unwatch to have different docs for standalone (#372) * Separated unwatch to have different docs for standalone * Added line break
- Loading branch information
Showing
6 changed files
with
41 additions
and
23 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
25 changes: 25 additions & 0 deletions
25
java/client/src/main/java/glide/api/commands/TransactionsCommands.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,25 @@ | ||
/** Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ | ||
package glide.api.commands; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** | ||
* Supports commands for the "Transactions Commands" group for standalone clients. | ||
* | ||
* @see <a href="https://redis.io/commands/?group=transactions">Transactions Commands</a> | ||
*/ | ||
public interface TransactionsCommands { | ||
/** | ||
* Flushes all the previously watched keys for a transaction. Executing a transaction will | ||
* automatically flush all previously watched keys. | ||
* | ||
* @see <a href="https://redis.io/docs/latest/commands/unwatch/">redis.io</a> for details. | ||
* @return <code>OK</code>. | ||
* @example | ||
* <pre>{@code | ||
* assert client.watch(new String[] {"sampleKey"}).get().equals("OK"); | ||
* assert client.unwatch().get().equals("OK"); // Flushes "sampleKey" from watched keys. | ||
* }</pre> | ||
*/ | ||
CompletableFuture<String> unwatch(); | ||
} |