memcache

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(cfg Config) *Client

func (*Client) Delete

func (mc *Client) Delete(key string)

func (*Client) Flush

func (mc *Client) Flush()

func (*Client) Get

func (mc *Client) Get(key string) (interface{}, bool)

func (*Client) Set

func (mc *Client) Set(key string, val interface{}, ttl time.Duration)

func (*Client) Stats

func (mc *Client) Stats() int

type Config

type Config struct {
	DefaultTTL      time.Duration
	CleanupInterval time.Duration
}

Jump to

Keyboard shortcuts

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