sqcache

package
v0.0.0-...-3cb0c2f Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQCache

type SQCache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, path string, max int) (*SQCache, error)

func (*SQCache) Get

func (sq *SQCache) Get(ctx context.Context, key string) ([]byte, bool, error)

func (*SQCache) Put

func (sq *SQCache) Put(ctx context.Context, key string, value []byte) error

Jump to

Keyboard shortcuts

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