Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
Get(key interface{}) (interface{}, error)
Set(key, object interface{}) error
}
Interface is Cache interface
func NewCache ¶
func NewCache(cache cache.CacheInterface, option *store.Options) Interface
NewCache instantiates adapter for cache.CacheInterface
func NewCacheMarshaller ¶
func NewCacheMarshaller(marshaller Marshaler, returnObj MarshallerReturnObj, option *store.Options) Interface
NewCacheMarshaller generates adapter for marshaler.Marshaler
type Marshaler ¶
type Marshaler interface {
Get(key interface{}, returnObj interface{}) (interface{}, error)
Set(key, object interface{}, options *store.Options) error
Delete(key interface{}) error
Invalidate(options store.InvalidateOptions) error
Clear() 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.