Documentation ¶
Overview ¶
Package cache provides an abstraction for caching mechanisms used by the application. It allows setting and getting data from a cache backend (e.g., Redis).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { // Set stores data in the cache with a specified key. Set(ctx context.Context, key string, data any) error // Get retrieves data from the cache by the specified key. Get(ctx context.Context, key string, v any) error }
Cache defines the interface for caching operations. It provides methods for storing and retrieving data.
Click to show internal directories.
Click to hide internal directories.