fastcache

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.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 Config

type Config struct {
	MaxCacheSizeInByte int
}

func (*Config) NewCache

func (c *Config) NewCache() (cache.Cache, error)

type Fastcache

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

func NewFastcache

func NewFastcache(config *Config) (*Fastcache, error)

func (*Fastcache) Delete

func (fc *Fastcache) Delete(key string) error

func (*Fastcache) Get

func (fc *Fastcache) Get(key string, ptrToObject interface{}) error

func (*Fastcache) Set

func (fc *Fastcache) Set(key string, object interface{}) error

Jump to

Keyboard shortcuts

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