Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFromCache ¶
func DeleteFromCache(ctx context.Context, store *CacheStore, key string)
func GetFromCache ¶
func SetToCache ¶
Types ¶
type CacheStats ¶ added in v1.0.16
type CacheStore ¶
type CacheStore struct {
Logger logger.LoggerInterface
// contains filtered or unexported fields
}
func NewCacheStore ¶
func NewCacheStore(redis *redis.Client, logger logger.LoggerInterface, metrics observability.CacheMetricsInterface) *CacheStore
func (*CacheStore) ClearExpired ¶ added in v1.0.16
func (store *CacheStore) ClearExpired(ctx context.Context) (int64, error)
func (*CacheStore) GetRefCount ¶ added in v1.0.16
func (store *CacheStore) GetRefCount() int64
func (*CacheStore) GetStats ¶ added in v1.0.16
func (store *CacheStore) GetStats(ctx context.Context) (*CacheStats, error)
func (*CacheStore) InvalidateCache ¶ added in v1.0.16
Click to show internal directories.
Click to hide internal directories.