Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Retrieve ¶ added in v4.28.0
func Retrieve(ctx context.Context, redisClient RedisClient, key string, item interface{}, onMiss func() (interface{}, error), duration time.Duration) (interface{}, error)
Retrieve loads an item from the cache for given key or retrieve it (and store it in cache after)
Types ¶
Click to show internal directories.
Click to hide internal directories.