Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager[K comparable, V any] interface { Load(ctx context.Context, key K) ResourceFuture[V] LoadSync(ctx context.Context, key K) (Resource[V], error) // Delete deletes resource with the given key from cache. Delete(key K) bool // Len returns current amount of keys in cache. Len() int }
func NewManager ¶
func NewManager[K comparable, V any](storage Storage[K, V]) Manager[K, V]
type ResourceFuture ¶
Click to show internal directories.
Click to hide internal directories.