Documentation ¶
Index ¶
- Constants
- func ExpireFunc(cli *redis.Client, key string, expiration time.Duration, option string) *redis.BoolCmd
- func NewCacheExpireActionSpec() spec.ExpActionCommandSpec
- func NewCacheLimitActionSpec() spec.ExpActionCommandSpec
- func NewRedisCommandSpec() spec.ExpModelCommandSpec
- type CacheExpireActionCommandSpec
- type CacheExpireExecutor
- type CacheLimitActionCommandSpec
- type CacheLimitExecutor
- type RedisCommandSpec
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 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) Name() string
func (*CacheExpireActionCommandSpec) ShortDesc ¶
func (*CacheExpireActionCommandSpec) ShortDesc() string
type CacheExpireExecutor ¶
type CacheExpireExecutor struct {
// contains filtered or unexported fields
}
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) Name() string
func (*CacheLimitActionCommandSpec) ShortDesc ¶
func (*CacheLimitActionCommandSpec) ShortDesc() string
type CacheLimitExecutor ¶
type CacheLimitExecutor struct {
// contains filtered or unexported fields
}
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
Click to show internal directories.
Click to hide internal directories.