Documentation
¶
Index ¶
- func Delete(ctx context.Context, key string) error
- func Get[T any](ctx context.Context, key string) (T, error)
- func GetWithTTL[T any](ctx context.Context, key string) (T, time.Duration, error)
- func Set(ctx context.Context, key string, value any) error
- func SetWithTTL(ctx context.Context, key string, value any, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWithTTL ¶
GetWithTTL returns the object stored in cache and its corresponding TTL
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.