Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacher ¶
type Cacher interface { Shutdown() Get(ctx context.Context, key string) (string, error) Set(ctx context.Context, key string, val string) error SetWithExpiry(ctx context.Context, key string, val string, expiry time.Duration) error Delete(ctx context.Context, key string) error }
func NewCache ¶
func NewCache(cfg *c.Configuration, logger *slog.Logger, dbClient *mongo_client.Client) Cacher
Click to show internal directories.
Click to hide internal directories.