Documentation ¶
Index ¶
- type Cache
- func (this *Cache) Evict(rlog logrus.FieldLogger, entityRef string)
- func (this *Cache) EvictEntity(rlog logrus.FieldLogger, entityRef string) fault.TypedError
- func (this *Cache) Get(rlog logrus.FieldLogger, entityRef string, entity interface{}) (bool, fault.TypedError)
- func (this *Cache) GetEntity(rlog logrus.FieldLogger, entityRef string, entity interface{}) (bool, fault.TypedError)
- func (this *Cache) Put(rlog logrus.FieldLogger, entityRef string, entity interface{})
- func (this *Cache) PutEntity(rlog logrus.FieldLogger, entityRef string, entity interface{}) fault.TypedError
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) 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
Click to show internal directories.
Click to hide internal directories.