Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextCache ¶
type ContextCache struct {
// contains filtered or unexported fields
}
ContextCache is a dataloader.Cache implementation that removes cache entries after the context is done.
func NewContextCache ¶
func NewContextCache(logger *zap.Logger) *ContextCache
func (*ContextCache) Clear ¶
func (c *ContextCache) Clear()
func (*ContextCache) Delete ¶
func (c *ContextCache) Delete(ctx context.Context, key dataloader.Key) bool
func (*ContextCache) Get ¶
func (c *ContextCache) Get(ctx context.Context, key dataloader.Key) (dataloader.Thunk, bool)
func (*ContextCache) Set ¶
func (c *ContextCache) Set(ctx context.Context, key dataloader.Key, thunk dataloader.Thunk)
Click to show internal directories.
Click to hide internal directories.