Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
func NewLRUCache ¶
func (*LRUCache) GetAggregate ¶
func (*LRUCache) Invalidate ¶
type LoadingCache ¶
type LoadingCache struct { fes.CacheReaderWriter // contains filtered or unexported fields }
LoadingCache looks into a backing data store in case there is a cache miss
func NewLoadingCache ¶
func NewLoadingCache(cache fes.CacheReaderWriter, client fes.Backend, projector fes.Projector) *LoadingCache
func (*LoadingCache) GetAggregate ¶
func (*LoadingCache) List ¶
func (c *LoadingCache) List() []fes.Aggregate
List for a LoadingCache returns the keys of all entities in the cache.
TODO provide option to force fallback or only do quick cache lookup. TODO sync cache with store while you are at it.
func (*LoadingCache) Refresh ¶
func (c *LoadingCache) Refresh(key fes.Aggregate)
type SubscribedCache ¶
type SubscribedCache struct { pubsub.Publisher fes.CacheReaderWriter // contains filtered or unexported fields }
A SubscribedCache is subscribed to an event emitter
func NewSubscribedCache ¶
func NewSubscribedCache(cache fes.CacheReaderWriter, projector fes.Projector, sub *pubsub.Subscription) *SubscribedCache
func (*SubscribedCache) Close ¶
func (uc *SubscribedCache) Close() error
Click to show internal directories.
Click to hide internal directories.