cache

package
v0.0.0-...-98ac3ab Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Cluster = "cluster"
View Source
const Shared = "shared"
View Source
const Unshared = "unshared"

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedCache

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

func (*SharedCache) Att

func (that *SharedCache) Att() *macro.Att

func (*SharedCache) Decr

func (that *SharedCache) Decr(ctx context.Context, key string, value int64) (int64, error)

func (*SharedCache) Get

func (that *SharedCache) Get(ctx context.Context, key string) (*types.CacheEntity, error)

func (*SharedCache) HDel

func (that *SharedCache) HDel(ctx context.Context, key string, name string) error

func (*SharedCache) HGet

func (that *SharedCache) HGet(ctx context.Context, key string, name string) (*types.CacheEntity, error)

func (*SharedCache) HKeys

func (that *SharedCache) HKeys(ctx context.Context, key string) ([]string, error)

func (*SharedCache) HSet

func (that *SharedCache) HSet(ctx context.Context, key string, cell *types.CacheEntity) error

func (*SharedCache) Incr

func (that *SharedCache) Incr(ctx context.Context, key string, value int64) (int64, error)

func (*SharedCache) Keys

func (that *SharedCache) Keys(ctx context.Context, pattern string) ([]string, error)

func (*SharedCache) Put

func (that *SharedCache) Put(ctx context.Context, cell *types.CacheEntity) error

func (*SharedCache) Remove

func (that *SharedCache) Remove(ctx context.Context, key string) error

func (*SharedCache) Store

func (that *SharedCache) Store(ctx context.Context, name string) *groupcache.Group

type UnSharedCache

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

func (*UnSharedCache) Att

func (that *UnSharedCache) Att() *macro.Att

func (*UnSharedCache) Decr

func (that *UnSharedCache) Decr(ctx context.Context, key string, value int64) (int64, error)

func (*UnSharedCache) Get

func (that *UnSharedCache) Get(ctx context.Context, key string) (*types.CacheEntity, error)

func (*UnSharedCache) HDel

func (that *UnSharedCache) HDel(ctx context.Context, key string, name string) error

func (*UnSharedCache) HGet

func (that *UnSharedCache) HGet(ctx context.Context, key string, name string) (*types.CacheEntity, error)

func (*UnSharedCache) HKeys

func (that *UnSharedCache) HKeys(ctx context.Context, key string) ([]string, error)

func (*UnSharedCache) HSet

func (that *UnSharedCache) HSet(ctx context.Context, key string, cell *types.CacheEntity) error

func (*UnSharedCache) Incr

func (that *UnSharedCache) Incr(ctx context.Context, key string, value int64) (int64, error)

func (*UnSharedCache) Keys

func (that *UnSharedCache) Keys(ctx context.Context, pattern string) ([]string, error)

func (*UnSharedCache) Put

func (that *UnSharedCache) Put(ctx context.Context, cell *types.CacheEntity) error

func (*UnSharedCache) Remove

func (that *UnSharedCache) Remove(ctx context.Context, key string) error

func (*UnSharedCache) Store

func (that *UnSharedCache) Store(ctx context.Context) *cache.Cache

Jump to

Keyboard shortcuts

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