Documentation
¶
Overview ¶
Package multilevel composes an L1 (local) and L2 (remote) cache.
Index ¶
- type Cache
- func (c *Cache[K, V]) Clear(ctx context.Context) error
- func (c *Cache[K, V]) Close() error
- func (c *Cache[K, V]) Delete(ctx context.Context, key K) error
- func (c *Cache[K, V]) Exists(ctx context.Context, key K) (bool, error)
- func (c *Cache[K, V]) Get(ctx context.Context, key K) (V, error)
- func (c *Cache[K, V]) Set(ctx context.Context, key K, value V, ttl time.Duration) error
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.