redis

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheExpireBin = "chaos_cacheExpire"
	STATUSOK       = "OK"
	OPTIONNX       = "NX"
	OPTIONXX       = "XX"
	OPTIONGT       = "GT"
	OPTIONLT       = "LT"
)
View Source
const CacheLimitBin = "chaos_cacheLimit"

Variables

This section is empty.

Functions

func ExpireFunc

func ExpireFunc(cli *redis.Client, key string, expiration time.Duration, option string) *redis.BoolCmd

func NewCacheExpireActionSpec

func NewCacheExpireActionSpec() spec.ExpActionCommandSpec

func NewCacheLimitActionSpec

func NewCacheLimitActionSpec() spec.ExpActionCommandSpec

func NewRedisCommandSpec

func NewRedisCommandSpec() spec.ExpModelCommandSpec

Types

type CacheExpireActionCommandSpec

type CacheExpireActionCommandSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*CacheExpireActionCommandSpec) Aliases

func (*CacheExpireActionCommandSpec) Aliases() []string

func (*CacheExpireActionCommandSpec) Categories

func (*CacheExpireActionCommandSpec) Categories() []string

func (*CacheExpireActionCommandSpec) LongDesc

func (k *CacheExpireActionCommandSpec) LongDesc() string

func (*CacheExpireActionCommandSpec) Name

func (*CacheExpireActionCommandSpec) ShortDesc

func (*CacheExpireActionCommandSpec) ShortDesc() string

type CacheExpireExecutor

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

func (*CacheExpireExecutor) Exec

func (cee *CacheExpireExecutor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response

func (*CacheExpireExecutor) Name

func (cee *CacheExpireExecutor) Name() string

func (*CacheExpireExecutor) SetChannel

func (cee *CacheExpireExecutor) SetChannel(channel spec.Channel)

type CacheLimitActionCommandSpec

type CacheLimitActionCommandSpec struct {
	spec.BaseExpActionCommandSpec
}

func (*CacheLimitActionCommandSpec) Aliases

func (*CacheLimitActionCommandSpec) Aliases() []string

func (*CacheLimitActionCommandSpec) Categories

func (*CacheLimitActionCommandSpec) Categories() []string

func (*CacheLimitActionCommandSpec) LongDesc

func (k *CacheLimitActionCommandSpec) LongDesc() string

func (*CacheLimitActionCommandSpec) Name

func (*CacheLimitActionCommandSpec) ShortDesc

func (*CacheLimitActionCommandSpec) ShortDesc() string

type CacheLimitExecutor

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

func (*CacheLimitExecutor) Exec

func (cle *CacheLimitExecutor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response

func (*CacheLimitExecutor) Name

func (cle *CacheLimitExecutor) Name() string

func (*CacheLimitExecutor) SetChannel

func (cle *CacheLimitExecutor) SetChannel(channel spec.Channel)

type RedisCommandSpec

type RedisCommandSpec struct {
	spec.BaseExpModelCommandSpec
}

func (*RedisCommandSpec) LongDesc

func (*RedisCommandSpec) LongDesc() string

func (*RedisCommandSpec) Name

func (*RedisCommandSpec) Name() string

func (*RedisCommandSpec) ShortDesc

func (*RedisCommandSpec) ShortDesc() string

Jump to

Keyboard shortcuts

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