cache

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	cache.Cache

	// SetNoExpireCtx Because zero cache set ctx has default expire, so jzero add this method
	SetNoExpireCtx(ctx context.Context, key string, val any) error
}

func NewRedisNode added in v0.15.0

func NewRedisNode(rds *redis.Redis, errNotFound error, opts ...zerocache.Option) Cache

func NewSyncMap added in v0.15.0

func NewSyncMap(errNotFound error) Cache

NewSyncMap creates an instance of SyncMap cache driver

Jump to

Keyboard shortcuts

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