Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dataloader ¶
type Dataloader struct {
// contains filtered or unexported fields
}
Dataloader implements the dataloader.Cache interface
func NewDataloader ¶
func NewDataloader(ttl time.Duration) *Dataloader
func (*Dataloader) Delete ¶
func (d *Dataloader) Delete(_ context.Context, key dataloader.Key) bool
Delete deletes and item in the cache
func (*Dataloader) Get ¶
func (d *Dataloader) Get(_ context.Context, key dataloader.Key) (dataloader.Thunk, bool)
Get gets a value from the cache
func (*Dataloader) Set ¶
func (d *Dataloader) 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.