Documentation
¶
Index ¶
- func New[T any](value T, opts ...Option[T]) *item[T]
- type Item
- type Option
- func WithDeleteHandler[T any](fn func(v T)) Option[T]
- func WithDurationDays[T any](days int) Option[T]
- func WithDurationHours[T any](hours int) Option[T]
- func WithDurationMinutes[T any](minutes int) Option[T]
- func WithDurationMonths[T any](months int) Option[T]
- func WithDurationSeconds[T any](seconds int) Option[T]
- func WithExpiration[T any](expiration int64) Option[T]
- func WithNoExpiration[T any]() Option[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.