Documentation ¶
Index ¶
- type Marshaler
- func (c *Marshaler) Clear(ctx context.Context) error
- func (c *Marshaler) Delete(ctx context.Context, key any) error
- func (c *Marshaler) Get(ctx context.Context, key any, returnObj any) (any, error)
- func (c *Marshaler) Invalidate(ctx context.Context, options ...store.InvalidateOption) error
- func (c *Marshaler) Set(ctx context.Context, key, object any, options ...store.Option) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
type Marshaler struct {
// contains filtered or unexported fields
}
Marshaler is the struct that marshal and unmarshal cache values
func New ¶
func New(cache cache.CacheInterface[any]) *Marshaler
New creates a new marshaler that marshals/unmarshals cache values
func (*Marshaler) Invalidate ¶
Invalidate invalidate cache values using given options
Click to show internal directories.
Click to hide internal directories.