cache

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	*cache.Cache
}

Object is a cache to store object data.

func New

func New(expiryInterval, cleanupInterval time.Duration) *Object

New initializes and returns a new object cache.

func (*Object) CacheMiss

func (c *Object) CacheMiss(obj client.Object) bool

CacheMiss implements external controller Cache interface. It checks for cache miss with the given object. On cache miss, it updates the cache.

Jump to

Keyboard shortcuts

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