Documentation
¶
Index ¶
- type Cache
- func (rc *Cache[K, T]) Check(ctx context.Context, key K) (T, bool)
- func (rc *Cache[K, T]) Get(ctx context.Context, key K) (T, bool)
- func (rc *Cache[K, T]) GetRecheckKeys(ctx context.Context) []K
- func (rc *Cache[K, T]) Refresh(ctx context.Context, key K) (T, error)
- func (rc *Cache[K, T]) SetTTL(ctx context.Context, key K, value T, ttl1 time.Duration, ttl2 time.Duration) error
- func (rc *Cache[K, T]) Start(t time.Duration)
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.