cacheservice

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCachedDB

func GetCachedDB() int

GetCachedDB get cache db.

func GetChacheExpired

func GetChacheExpired() int

GetChacheExpired get cache expired.

func GetSessionDB

func GetSessionDB() int

GetSessionDB get session db.

Types

type CacheAssessor

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

CacheAssessor struct.

func NewCacheAssessor

func NewCacheAssessor(db int) *CacheAssessor

NewCacheAssessor creates a new CacheAssessor.

func (*CacheAssessor) Delete

func (ca *CacheAssessor) Delete(ctx context.Context, index string) error

Delete remove cache contents.

func (*CacheAssessor) Get

func (ca *CacheAssessor) Get(ctx context.Context, index string) (interface{}, bool)

Get returns cache contents.

func (*CacheAssessor) Set

func (ca *CacheAssessor) Set(ctx context.Context, index string, value interface{}, expired int) error

Set puts cache contents.

Jump to

Keyboard shortcuts

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