memory

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(dir string) *Client

func (*Client) Destroy

func (m *Client) Destroy(key string) error

func (*Client) Exists

func (m *Client) Exists(key string) bool

func (*Client) Get

func (m *Client) Get(key string) string

func (*Client) Set

func (m *Client) Set(key string, value string, expiration time.Duration) error

Jump to

Keyboard shortcuts

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