memory

package
v0.0.0-...-0f594a8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: AGPL-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

New creates a new memory cache.

func (Cache) DeleteInstanceHostname

func (c Cache) DeleteInstanceHostname(ctx context.Context, domain string) cache.Error

func (Cache) GetInstanceHostname

func (c Cache) GetInstanceHostname(ctx context.Context, domain string) (string, cache.Error)

func (Cache) SetInstanceHostname

func (c Cache) SetInstanceHostname(_ context.Context, domain, hostname string, expiration int) cache.Error

Jump to

Keyboard shortcuts

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