Versions in this module Expand all Collapse all v1 v1.0.2 Mar 13, 2024 v1.0.1 Mar 13, 2024 Changes in this version + const CacheExpireBin + const CacheLimitBin + const OPTIONGT + const OPTIONLT + const OPTIONNX + const OPTIONXX + const STATUSOK + 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 struct + func (*CacheExpireActionCommandSpec) Aliases() []string + func (*CacheExpireActionCommandSpec) Categories() []string + func (*CacheExpireActionCommandSpec) Name() string + func (*CacheExpireActionCommandSpec) ShortDesc() string + func (k *CacheExpireActionCommandSpec) LongDesc() string + type CacheExpireExecutor struct + func (cee *CacheExpireExecutor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response + func (cee *CacheExpireExecutor) Name() string + func (cee *CacheExpireExecutor) SetChannel(channel spec.Channel) + type CacheLimitActionCommandSpec struct + func (*CacheLimitActionCommandSpec) Aliases() []string + func (*CacheLimitActionCommandSpec) Categories() []string + func (*CacheLimitActionCommandSpec) Name() string + func (*CacheLimitActionCommandSpec) ShortDesc() string + func (k *CacheLimitActionCommandSpec) LongDesc() string + type CacheLimitExecutor struct + func (cle *CacheLimitExecutor) Exec(uid string, ctx context.Context, model *spec.ExpModel) *spec.Response + func (cle *CacheLimitExecutor) Name() string + func (cle *CacheLimitExecutor) SetChannel(channel spec.Channel) + type RedisCommandSpec struct + func (*RedisCommandSpec) LongDesc() string + func (*RedisCommandSpec) Name() string + func (*RedisCommandSpec) ShortDesc() string