cache

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	//Log                    *logger.Logger `inject:""`
	RedisClient            *redis.Client `inject:""`
	Enabled                bool          `inject:""`
	EntityCacheLifetimeSec int           `inject:""`
	KeyNamePrefix          string
}

func (*Cache) Evict

func (this *Cache) Evict(
	rlog logrus.FieldLogger,
	entityRef string,
)

func (*Cache) EvictEntity

func (this *Cache) EvictEntity(
	rlog logrus.FieldLogger,
	entityRef string,
) fault.TypedError

func (*Cache) Get

func (this *Cache) Get(
	rlog logrus.FieldLogger,
	entityRef string, entity interface{},
) (
	bool, fault.TypedError,
)

func (*Cache) GetEntity

func (this *Cache) GetEntity(
	rlog logrus.FieldLogger,
	entityRef string,
	entity interface{},
) (
	bool,
	fault.TypedError,
)

func (*Cache) Put

func (this *Cache) Put(
	rlog logrus.FieldLogger,
	entityRef string,
	entity interface{},
)

func (*Cache) PutEntity

func (this *Cache) PutEntity(
	rlog logrus.FieldLogger,
	entityRef string,
	entity interface{},
) fault.TypedError

Jump to

Keyboard shortcuts

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