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.
* Add `CONFIG REWRITE` and `CONFIG RESETSTAT`. Signed-off-by: Yury-Fridlyand <[email protected]>
- Loading branch information
1 parent
0ee5ab0
commit 29a7ed7
Showing
14 changed files
with
346 additions
and
7 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
41 changes: 41 additions & 0 deletions
41
java/client/src/main/java/glide/api/commands/ServerManagementBaseCommands.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,41 @@ | ||
/** Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */ | ||
package glide.api.commands; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** | ||
* Server Management Commands interface for both standalone and cluster clients. | ||
* | ||
* @see <a href="https://redis.io/commands/?group=server">Server Management Commands</a> | ||
*/ | ||
public interface ServerManagementBaseCommands { | ||
|
||
/** | ||
* Rewrites the configuration file with the current configuration. | ||
* | ||
* @see <a href="https://redis.io/commands/config-rewrite/">redis.io</a> for details. | ||
* @return <code>OK</code> when the configuration was rewritten properly, otherwise an error is | ||
* raised. | ||
* @example | ||
* <pre> | ||
* String response = client.configRewrite().get(); | ||
* assert response.equals("OK") | ||
* </pre> | ||
*/ | ||
CompletableFuture<String> configRewrite(); | ||
|
||
/** | ||
* Resets the statistics reported by Redis using the <a | ||
* href="https://redis.io/commands/info/">INFO</a> and <a | ||
* href="https://redis.io/commands/latency-histogram/">LATENCY HISTOGRAM</a> commands. | ||
* | ||
* @see <a href="https://redis.io/commands/config-resetstat/">redis.io</a> for details. | ||
* @return <code>OK</code> to confirm that the statistics were successfully reset. | ||
* @example | ||
* <pre> | ||
* String response = client.configResetStat().get(); | ||
* assert response.equals("OK") | ||
* </pre> | ||
*/ | ||
CompletableFuture<String> configResetStat(); | ||
} |
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
Empty file.
Oops, something went wrong.