memory

package
v0.0.0-...-3301c0c Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(opts ...AdapterOptions) (*Adapter, error)

func (*Adapter) Get

func (a *Adapter) Get(key uint64) ([]byte, bool)

func (*Adapter) Release

func (a *Adapter) Release(key uint64) error

func (*Adapter) Set

func (a *Adapter) Set(key uint64, response []byte, expiration time.Time) error

type AdapterOptions

type AdapterOptions func(a *Adapter) error

func WithCapacity

func WithCapacity(capacity int) AdapterOptions

func WithDebug

func WithDebug(debug bool) AdapterOptions

Jump to

Keyboard shortcuts

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