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 VersionCacheGroup ¶
type VersionCacheGroup struct {
// value store pointer don't modify it
VersionLatestCache *Cache[string, *ent.Version]
VersionNameCache *Cache[string, *ent.Version]
FullUpdateStorageCache *Cache[string, *ent.Storage]
IncrementalUpdateStorageCache *Cache[string, *ent.Storage]
}
func NewVersionCacheGroup ¶
func NewVersionCacheGroup(rdb *redis.Client) *VersionCacheGroup
func (*VersionCacheGroup) EvictAll ¶
func (g *VersionCacheGroup) EvictAll()
func (*VersionCacheGroup) GetCacheKey ¶
func (g *VersionCacheGroup) GetCacheKey(elems ...string) string
Click to show internal directories.
Click to hide internal directories.