redis

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package redis 实现 redis binder:Redis 浏览/编辑(key 扫描、读写、TTL、慢日志等)。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LangProvider

type LangProvider interface {
	Lang() string
}

LangProvider 由 system binder 实现。

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

Redis binder。

func New

func New(appCtx context.Context, lang LangProvider, pool *sshpool.Pool) *Redis

New 构造 redis binder。

func (*Redis) Cleanup

func (r *Redis) Cleanup()

Cleanup 占位。

func (*Redis) RedisClientList

func (r *Redis) RedisClientList(assetID int64) (string, error)

func (*Redis) RedisCommandHistory

func (r *Redis) RedisCommandHistory(assetID int64, limit int) []redis_svc.CommandHistoryEntry

func (*Redis) RedisDeleteKeys

func (r *Redis) RedisDeleteKeys(assetID int64, db int, keys []string) error

func (*Redis) RedisEncodeValue

func (r *Redis) RedisEncodeValue(value string, format string) (string, error)

func (*Redis) RedisFormatValue

func (r *Redis) RedisFormatValue(value string, format string) redis_svc.RedisFormattedValue

func (*Redis) RedisGetKeyDetail

func (r *Redis) RedisGetKeyDetail(req redis_svc.RedisKeyRequest) (redis_svc.RedisKeyDetail, error)

func (*Redis) RedisHashDelete

func (r *Redis) RedisHashDelete(assetID int64, db int, key string, field string) error

func (*Redis) RedisHashSet

func (r *Redis) RedisHashSet(assetID int64, db int, key string, field string, value string) error

func (*Redis) RedisListDatabases

func (r *Redis) RedisListDatabases(assetID int64) ([]redis_svc.RedisDatabase, error)

func (*Redis) RedisListDelete

func (r *Redis) RedisListDelete(assetID int64, db int, key string, index int64) error

func (*Redis) RedisListPush

func (r *Redis) RedisListPush(assetID int64, db int, key string, value string) error

func (*Redis) RedisListSet

func (r *Redis) RedisListSet(assetID int64, db int, key string, index int64, value string) error

func (*Redis) RedisPersistKey

func (r *Redis) RedisPersistKey(assetID int64, db int, key string) error

func (*Redis) RedisRenameKey

func (r *Redis) RedisRenameKey(assetID int64, db int, oldKey string, newKey string) error

func (*Redis) RedisScanKeys

func (*Redis) RedisSetAdd

func (r *Redis) RedisSetAdd(assetID int64, db int, key string, member string) error

func (*Redis) RedisSetKeyTTL

func (r *Redis) RedisSetKeyTTL(assetID int64, db int, key string, seconds int64) error

func (*Redis) RedisSetRemove

func (r *Redis) RedisSetRemove(assetID int64, db int, key string, member string) error

func (*Redis) RedisSetStringValue

func (r *Redis) RedisSetStringValue(req redis_svc.RedisStringSetRequest) error

func (*Redis) RedisSlowLog

func (r *Redis) RedisSlowLog(assetID int64, limit int64) ([]redis_svc.RedisSlowLogEntry, error)

func (*Redis) RedisStreamAdd

func (r *Redis) RedisStreamAdd(assetID int64, db int, key string, id string, fields []redis_svc.RedisStreamField) error

func (*Redis) RedisStreamDelete

func (r *Redis) RedisStreamDelete(assetID int64, db int, key string, ids []string) error

func (*Redis) RedisZSetAdd

func (r *Redis) RedisZSetAdd(assetID int64, db int, key string, member string, score float64) error

func (*Redis) RedisZSetRemove

func (r *Redis) RedisZSetRemove(assetID int64, db int, key string, member string) error

func (*Redis) Startup

func (r *Redis) Startup(ctx context.Context)

Startup 保存 Wails ctx。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL