cache

package
v0.6.42 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitComponentShaCache

func InitComponentShaCache(expireAfter time.Duration)

func InitGateCache

func InitGateCache(expireAfter time.Duration, consoleClient client.Client)

Types

type SimpleCache

type SimpleCache[T any] struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func ComponentShaCache

func ComponentShaCache() *SimpleCache[string]

func NewSimpleCache

func NewSimpleCache[T any](expiry time.Duration) *SimpleCache[T]

func (*SimpleCache[T]) Add

func (c *SimpleCache[T]) Add(id string, resource T)

func (*SimpleCache[T]) Expire

func (c *SimpleCache[T]) Expire(id string)

func (*SimpleCache[T]) Get

func (c *SimpleCache[T]) Get(id string) (T, bool)

func (*SimpleCache[T]) Wipe

func (c *SimpleCache[T]) Wipe()

type UserGroupCache

type UserGroupCache interface {
	GetGroupID(name string) (string, error)
	GetUserID(email string) (string, error)
}

func NewUserGroupCache

func NewUserGroupCache(consoleClient console.Client) UserGroupCache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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