cache

package
v0.0.72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryCache

type QueryCache interface {
	Read(ctx context.Context, query string, variables map[string]interface{}) ([]byte, error)
	Write(ctx context.Context, query string, variables map[string]interface{}, res []byte) error
}

type SimpleQueryCache

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

func NewQueryCache

func NewQueryCache() SimpleQueryCache

func (SimpleQueryCache) Read

func (d SimpleQueryCache) Read(ctx context.Context, query string, variables map[string]interface{}) ([]byte, error)

func (SimpleQueryCache) Write

func (d SimpleQueryCache) Write(ctx context.Context, query string, variables map[string]interface{}, res []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL