forked from valkey-io/valkey-glide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver_management_commands.go
More file actions
42 lines (26 loc) · 982 Bytes
/
server_management_commands.go
File metadata and controls
42 lines (26 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
package api
import (
"github.com/valkey-io/valkey-glide/go/api/options"
)
// ServerManagementCommands supports commands for the "Server Management" group for a standalone client.
//
// See [valkey.io] for details.
//
// [valkey.io]: https://valkey.io/commands/#server
type ServerManagementCommands interface {
Select(index int64) (string, error)
ConfigGet(args []string) (map[string]string, error)
ConfigSet(parameters map[string]string) (string, error)
Info() (string, error)
InfoWithOptions(options options.InfoOptions) (string, error)
DBSize() (int64, error)
Time() ([]string, error)
FlushAll() (string, error)
FlushAllWithOptions(mode options.FlushMode) (string, error)
FlushDB() (string, error)
FlushDBWithOptions(mode options.FlushMode) (string, error)
Lolwut() (string, error)
LolwutWithOptions(opts options.LolwutOptions) (string, error)
LastSave() (int64, error)
}