Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAside ¶
type CacheAside[T CacheAsideKey] struct { // contains filtered or unexported fields }
func NewCacheAside ¶
func NewCacheAside[T CacheAsideKey](redisClient rueidis.Client, metaLoader MetaLoader[T], expireTime time.Duration) *CacheAside[T]
type CacheAsideKey ¶
type MetaLoader ¶
type MetaLoader[T CacheAsideKey] interface { CacheAsideLoad(context.Context, T) (T, error) }
Click to show internal directories.
Click to hide internal directories.