Documentation ¶
Index ¶
- func NewRedisClient(storageDir string, conf model.RedisService) (*redis.Client, error)
- func SaveRedisConfig(conf model.RedisService) error
- func TestConnect(conf model.RedisService) error
- type API
- func (a *API) DelKey(ctx context.Context, db, key string) error
- func (a *API) GetDBs(ctx context.Context, service string) (dbInfos []model.DbInfo, err error)
- func (a *API) GetKeys(ctx context.Context, db, filter string, cursor int) ([]model.Node, int, error)
- func (a *API) GetTypes(ctx context.Context, db, key string) (string, error)
- func (a *API) LuaRun(ctx context.Context, db string, script string, keys, args []string) (string, error)
- func (a *API) ServerInfo(ctx context.Context) (string, error)
- func (a *API) TTLKey(ctx context.Context, db, key string, ttl int) error
- func (a *API) TestConnect() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisClient ¶
func NewRedisClient(storageDir string, conf model.RedisService) (*redis.Client, error)
NewRedisClient 生成redis客户端
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetKeys ¶
func (a *API) GetKeys(ctx context.Context, db, filter string, cursor int) ([]model.Node, int, error)
GetKeys 获取匹配的key列表
func (*API) ServerInfo ¶
ServerInfo redis server详情
Click to show internal directories.
Click to hide internal directories.