redis

package
v0.0.0-...-8bf0c8e Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BizConfRedisCache

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

func NewBizConfRedisCache

func NewBizConfRedisCache(rc redis.Cmdable, logger *zap.Logger) *BizConfRedisCache

func (*BizConfRedisCache) Get

func (*BizConfRedisCache) Set

func (r *BizConfRedisCache) Set(ctx context.Context, id uint64, conf domain.BizConf) error

type QuotaRedisCache

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

func NewQuotaRedisCache

func NewQuotaRedisCache(rc redis.Cmdable, logger *zap.Logger) *QuotaRedisCache

func (*QuotaRedisCache) BatchDecr

func (q *QuotaRedisCache) BatchDecr(ctx context.Context, params []cache.QuotaParam) error

func (*QuotaRedisCache) BatchIncr

func (q *QuotaRedisCache) BatchIncr(ctx context.Context, params []cache.QuotaParam) error

func (*QuotaRedisCache) Decr

func (q *QuotaRedisCache) Decr(ctx context.Context, param cache.QuotaParam) error

func (*QuotaRedisCache) Incr

func (q *QuotaRedisCache) Incr(ctx context.Context, param cache.QuotaParam) error

Jump to

Keyboard shortcuts

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