Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
func (*Cache[K, V]) ComputeIfAbsent ¶
type MultiCacheGroup ¶ added in v0.5.1
type MultiCacheGroup struct {
// key: resourceId:versionName -> versionId
VersionNameIdCache *Cache[string, int]
// key: versionId:os:arch
FullUpdateStorageCache *Cache[string, *ent.Storage]
// key: targetVersionId:currentVersionId:os:arch / cache empty
IncrementalUpdateInfoCache *Cache[string, *model.IncrementalUpdateInfo]
// resourceId:os:arch:channel / cache empty
MultiVersionInfoCache *Cache[string, *model.MultiVersionInfo]
ResourceInfoCache *Cache[string, *ent.Resource]
FilesizeStatCache *Cache[string, int64]
}
func NewVersionCacheGroup ¶
func NewVersionCacheGroup(rdb *redis.Client) *MultiCacheGroup
func (*MultiCacheGroup) EvictAll ¶ added in v0.5.1
func (g *MultiCacheGroup) EvictAll()
func (*MultiCacheGroup) GetCacheKey ¶ added in v0.5.1
func (g *MultiCacheGroup) GetCacheKey(elems ...string) string
Click to show internal directories.
Click to hide internal directories.