Documentation
¶
Index ¶
- type BizConfRedisCache
- type QuotaRedisCache
- func (q *QuotaRedisCache) BatchDecr(ctx context.Context, params []cache.QuotaParam) error
- func (q *QuotaRedisCache) BatchIncr(ctx context.Context, params []cache.QuotaParam) error
- func (q *QuotaRedisCache) Decr(ctx context.Context, param cache.QuotaParam) error
- func (q *QuotaRedisCache) Incr(ctx context.Context, param cache.QuotaParam) error
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
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
Click to show internal directories.
Click to hide internal directories.