evcache

package
v0.0.0-...-b8b9e6a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 2 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL