Documentation
¶
Index ¶
- Variables
- func Get[T any](ctx context.Context, key string) (*T, error)
- func New(params Params) (config.Cache, error)
- func Persist[T any](ctx context.Context, key string, value *T, ttl time.Duration) error
- func Register(ca config.Cache)
- func Remove(ctx context.Context, key string) error
- type Cache
- type Params
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(cachego.New), fx.Provide(New), fx.Invoke(Register), )
Module for fx.
Functions ¶
Types ¶
type Cache ¶ added in v1.404.0
type Cache struct {
// contains filtered or unexported fields
}
Cache allows marshaling and compressing items to the cache.
Click to show internal directories.
Click to hide internal directories.