Documentation
¶
Index ¶
Constants ¶
View Source
const ( BizConfPrefix = "biz_conf" DefaultExpires = 15 * time.Minute )
Variables ¶
View Source
var ( ErrBizConfCacheKeyNotFound = fmt.Errorf("[jotify] biz conf cache key not found") ErrWrongTypeOfBizConfCache = fmt.Errorf("[jotify] wrong type of biz conf cache") )
Functions ¶
func BizConfCacheKey ¶
Types ¶
type BizConfCache ¶
type QuotaCache ¶
type QuotaCache interface { Incr(ctx context.Context, param QuotaParam) error BatchIncr(ctx context.Context, params []QuotaParam) error Decr(ctx context.Context, param QuotaParam) error BatchDecr(ctx context.Context, params []QuotaParam) error }
Click to show internal directories.
Click to hide internal directories.