Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryCache ¶
type MemoryCache struct {
// contains filtered or unexported fields
}
MemoryCache an in memory cache implementation
func NewMemoryCache ¶
func NewMemoryCache(ctx context.Context, wg *sync.WaitGroup, size int64, baseTTL uint32, forceTTL bool, gcDelay time.Duration) *MemoryCache
NewMemoryCache instantiate a new cache
func (*MemoryCache) Feed ¶
func (c *MemoryCache) Feed(record dto.Record)
Feed implements cache.Cache
Click to show internal directories.
Click to hide internal directories.