Versions in this module Expand all Collapse all v1 v1.5.5 Oct 25, 2023 Changes in this version + const CacheNameExampleExpireTime + const UserExampleExpireTime + type CacheNameExampleCache interface + Del func(ctx context.Context, keyNameExample keyTypeExample) error + Get func(ctx context.Context, keyNameExample keyTypeExample) (valueTypeExample, error) + Set func(ctx context.Context, keyNameExample keyTypeExample, ...) error + func NewCacheNameExampleCache(cacheType *model.CacheType) CacheNameExampleCache + type UserExampleCache interface + Del func(ctx context.Context, id uint64) error + Get func(ctx context.Context, id uint64) (*model.UserExample, error) + MultiGet func(ctx context.Context, ids []uint64) (map[uint64]*model.UserExample, error) + MultiSet func(ctx context.Context, data []*model.UserExample, duration time.Duration) error + Set func(ctx context.Context, id uint64, data *model.UserExample, ...) error + SetCacheWithNotFound func(ctx context.Context, id uint64) error + func NewUserExampleCache(cacheType *model.CacheType) UserExampleCache