cache

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 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 StoryRunCache

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

StoryRunCache is a simple thread-safe in-memory cache for StoryRun objects.

func NewStoryRunCache

func NewStoryRunCache() *StoryRunCache

NewStoryRunCache creates a new StoryRunCache.

func (*StoryRunCache) AddOrUpdate

func (c *StoryRunCache) AddOrUpdate(srun *runsv1alpha1.StoryRun)

AddOrUpdate adds or updates a StoryRun in the cache.

func (*StoryRunCache) Delete

func (c *StoryRunCache) Delete(name types.NamespacedName)

Delete removes a StoryRun from the cache.

func (*StoryRunCache) Get

Get retrieves a StoryRun from the cache.

Jump to

Keyboard shortcuts

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