memory

package
v0.0.0-...-a915469 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New

func New(ctx context.Context) (*Cache, error)

New creates a new memory cache.

func (Cache) DeleteHomeServer

func (c Cache) DeleteHomeServer(_ context.Context, domain string) error

func (Cache) GetHomeServer

func (c Cache) GetHomeServer(_ context.Context, domain string) (string, error)

func (Cache) SetHomeServer

func (c Cache) SetHomeServer(ctx context.Context, domain, homeServer string, expiration int) error

Jump to

Keyboard shortcuts

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