cache

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AuthServerCacheSize = 64

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServerCache

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

func NewAuthServerCache

func NewAuthServerCache(size int, providerRegistry *provider.Registry, data *persistence.AuthServerHolder) (*AuthServerCache, error)

func (*AuthServerCache) Get

func (*AuthServerCache) Invalidate

func (asc *AuthServerCache) Invalidate(keyer persistence.AuthServerKeyer) (found bool)

func (*AuthServerCache) InvalidateFromStorage

func (asc *AuthServerCache) InvalidateFromStorage(key string) bool

func (*AuthServerCache) Purge

func (asc *AuthServerCache) Purge()

type AuthServerCacheEntry

type AuthServerCacheEntry struct {
	*persistence.AuthServerEntry
	Provider provider.Provider
	// contains filtered or unexported fields
}

func (*AuthServerCacheEntry) Put

func (asce *AuthServerCacheEntry) Put()

type Cache

type Cache struct {
	Config     *ConfigCache
	AuthServer *AuthServerCache
}

func NewCache

func NewCache(providerRegistry *provider.Registry, data *persistence.Holder) (*Cache, error)

func (*Cache) InvalidateFromStorage

func (c *Cache) InvalidateFromStorage(key string) (found bool)

func (*Cache) Purge

func (c *Cache) Purge()

type ConfigCache

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

func NewConfigCache

func NewConfigCache(data *persistence.ConfigHolder) *ConfigCache

func (*ConfigCache) Get

func (cc *ConfigCache) Get(ctx context.Context, storage logical.Storage) (entry *ConfigCacheEntry, err error)

func (*ConfigCache) Invalidate

func (cc *ConfigCache) Invalidate() (found bool)

func (*ConfigCache) InvalidateFromStorage

func (cc *ConfigCache) InvalidateFromStorage(key string) bool

func (*ConfigCache) Purge

func (cc *ConfigCache) Purge()

type ConfigCacheEntry

type ConfigCacheEntry struct {
	*persistence.ConfigEntry
}

Jump to

Keyboard shortcuts

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