memcache

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordSize

func RecordSize() int

Types

type Cache

type Cache interface {
	Get(key string) (interface{}, string, bool) // value, content-type, found
	Set(key string, value interface{}, contentType ...string)
	Del(key string)
	Cleanup()
	Size() int
}

func New

func New(size int) Cache

New creates new memory cache with given maximum size in bytes

Jump to

Keyboard shortcuts

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