cache

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.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() *Cache

func (*Cache) Endpoint

func (s *Cache) Endpoint() *EndpointCache

Return endpoint storage

type EndpointCache

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

func NewEndpointCache

func NewEndpointCache(duration time.Duration) *EndpointCache

func (*EndpointCache) Clear

func (ec *EndpointCache) Clear()

func (*EndpointCache) Count

func (ec *EndpointCache) Count() int

func (*EndpointCache) Del

func (ec *EndpointCache) Del(key string)

func (*EndpointCache) Get

func (ec *EndpointCache) Get(key string) (data []string)

func (*EndpointCache) Set

func (ec *EndpointCache) Set(key string, data []string)

type Item

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

Jump to

Keyboard shortcuts

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