kubernetesk8s.io/kubernetes/pkg/util/cache Index | Files

package cache

import "k8s.io/kubernetes/pkg/util/cache"

Index

Types

type Cache

type Cache []*cacheShard

func NewCache

func NewCache(maxSize int) Cache

func (*Cache) Add

func (c *Cache) Add(index uint64, obj interface{}) bool

Returns true if object already existed, false otherwise.

func (*Cache) Get

func (c *Cache) Get(index uint64) (obj interface{}, found bool)

Source Files

cache.go

Version
v1.3.0-alpha.4
Published
May 17, 2016
Platform
js/wasm
Imports
1 packages
Last checked
12 minutes ago

Tools for package owners.