cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 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 APIConfigsCache added in v0.2.0

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

func (*APIConfigsCache) Delete added in v0.2.0

func (c *APIConfigsCache) Delete(id string)

func (*APIConfigsCache) FindId added in v0.2.0

func (c *APIConfigsCache) FindId(key string) (id string, found bool)

func (*APIConfigsCache) FindKeys added in v0.2.0

func (c *APIConfigsCache) FindKeys(id string) []string

func (*APIConfigsCache) Get added in v0.2.0

func (c *APIConfigsCache) Get(key string) *config.APIConfig

func (*APIConfigsCache) Set added in v0.2.0

func (c *APIConfigsCache) Set(id string, key string, config config.APIConfig, override bool) error

type Cache

type Cache interface {
	Set(id string, key string, config config.APIConfig, override bool) error
	Get(key string) *config.APIConfig
	Delete(id string)

	FindId(key string) (id string, found bool)
	FindKeys(id string) []string
}

func NewCache

func NewCache() Cache

Directories

Path Synopsis
Package mock_cache is a generated GoMock package.
Package mock_cache is a generated GoMock package.

Jump to

Keyboard shortcuts

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