caching

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher added in v1.4.0

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

Dispatcher is a dispatcher with built-in caching.

func NewCachingDispatcher

func NewCachingDispatcher(
	cacheConfig *ristretto.Config,
	nsm namespace.Manager,
	prometheusSubsystem string,
	keyHandler keys.Handler,
) (*Dispatcher, error)

NewCachingDispatcher creates a new dispatch.Dispatcher which delegates dispatch requests and caches the responses when possible and desirable.

func (*Dispatcher) Close added in v1.4.0

func (cd *Dispatcher) Close() error

func (*Dispatcher) DispatchCheck added in v1.4.0

DispatchCheck implements dispatch.Check interface

func (*Dispatcher) DispatchExpand added in v1.4.0

DispatchExpand implements dispatch.Expand interface and does not do any caching yet.

func (*Dispatcher) DispatchLookup added in v1.4.0

DispatchLookup implements dispatch.Lookup interface and does not do any caching yet.

func (*Dispatcher) SetDelegate added in v1.4.0

func (cd *Dispatcher) SetDelegate(delegate dispatch.Dispatcher)

SetDelegate sets the internal delegate to the specific dispatcher instance.

Jump to

Keyboard shortcuts

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