Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Get(ctx context.Context, key interface{}) (interface{}, error) Set(ctx context.Context, key, object interface{}) error }
Interface is Cache interface
func NewCacheMarshaller ¶
func NewCacheMarshaller(marshaller Marshaler, returnObj MarshallerReturnObj, option ...store.Option) Interface
NewCacheMarshaller generates adapter for marshaler.Marshaler
type Marshaler ¶
type Marshaler interface { Get(ctx context.Context, key interface{}, returnObj interface{}) (interface{}, error) Set(ctx context.Context, key, object interface{}, options ...store.Option) error Delete(ctx context.Context, key interface{}) error Invalidate(ctx context.Context, options ...store.InvalidateOption) error Clear(ctx context.Context) error }
Marshaler is interface for marshaler.Marshaler
type MarshallerReturnObj ¶
type MarshallerReturnObj func() interface{}
MarshallerReturnObj generates returned object to fill by marshaler.Marshaler
Click to show internal directories.
Click to hide internal directories.