memory

package
v0.8.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryCache

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

func New

func New() *InMemoryCache

func (*InMemoryCache) Delete

func (c *InMemoryCache) Delete(key string)

func (*InMemoryCache) Get

func (c *InMemoryCache) Get(key string) any

func (*InMemoryCache) Set

func (c *InMemoryCache) Set(key string, value any, ttl time.Duration)

func (*InMemoryCache) Start

func (c *InMemoryCache) Start(_ context.Context) error

func (*InMemoryCache) Stop

func (c *InMemoryCache) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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