memcache

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TTLru

type TTLru[T any] struct {
	// contains filtered or unexported fields
}

func NewTTLru

func NewTTLru[T any](size int) *TTLru[T]

func (*TTLru[T]) Get

func (c *TTLru[T]) Get(key string) (t T, exist bool)

func (*TTLru[T]) Set

func (c *TTLru[T]) Set(key string, v T, ttl time.Duration)

Jump to

Keyboard shortcuts

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