...

Package lru

import "github.com/99designs/gqlgen/graphql/handler/lru"
Overview
Index

Overview ▾

type LRU

type LRU struct {
    // contains filtered or unexported fields
}

func New

func New(size int) *LRU

func (LRU) Add

func (l LRU) Add(ctx context.Context, key string, value interface{})

func (LRU) Get

func (l LRU) Get(ctx context.Context, key string) (value interface{}, ok bool)