memoryCache

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheDriver

type CacheDriver struct {
	Cache sync.Map
}

func GetCacheDriver

func GetCacheDriver() (*CacheDriver, error)

func (*CacheDriver) Expire

func (b *CacheDriver) Expire(ctx context.Context, id string) error

func (*CacheDriver) Get

func (b *CacheDriver) Get(ctx context.Context, id string) (interface{}, error)

func (*CacheDriver) GetAppCache

func (b *CacheDriver) GetAppCache(ctx context.Context, projectId string) (*shared.ApplicationCache, error)

func (*CacheDriver) GetProject

func (b *CacheDriver) GetProject(ctx context.Context, projectId string) (*protobuff.Project, error)

func (*CacheDriver) ListKeys

func (b *CacheDriver) ListKeys(ctx context.Context) ([]string, error)

func (*CacheDriver) Put

func (b *CacheDriver) Put(ctx context.Context, id string, cache interface{}) error

func (*CacheDriver) PutAppCache

func (b *CacheDriver) PutAppCache(ctx context.Context, projectId string, cache *shared.ApplicationCache) error

func (*CacheDriver) SaveProject

func (b *CacheDriver) SaveProject(ctx context.Context, project *protobuff.Project) (*protobuff.Project, error)

Jump to

Keyboard shortcuts

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