Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
Prefix string
// contains filtered or unexported fields
}
Cache implements the dataloader.Cache interface
func (*Cache) Get ¶
func (c *Cache) Get(_ context.Context, key dataloader.Key) (dataloader.Thunk, bool)
Get gets a value from the cache
func (*Cache) Set ¶
func (c *Cache) Set(_ context.Context, key dataloader.Key, value dataloader.Thunk)
Set sets a value in the cache
Click to show internal directories.
Click to hide internal directories.