sharded

package
v0.0.0-...-a80d2e7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShardedCache

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

func NewShardedCache

func NewShardedCache(config *cache.Config) *ShardedCache

func (*ShardedCache) Delete

func (sc *ShardedCache) Delete(ctx context.Context, key string) error

func (*ShardedCache) Get

func (sc *ShardedCache) Get(ctx context.Context, key string) (interface{}, bool, error)

func (*ShardedCache) Set

func (sc *ShardedCache) Set(ctx context.Context, key string, data interface{}, priority int, category string) error

Jump to

Keyboard shortcuts

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