memory

package
v0.0.0-...-5ed4770 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package memory provides an in-memory implementation of the cache.Cache interface for development and testing environments.

Package memory provides an in-memory implementation of the cache.Cache interface for development and testing environments.

This file contains connection count management methods.

Index

Constants

This section is empty.

Variables

View Source
var ErrCacheClosed = errors.New("cache: closed")

ErrCacheClosed is returned when a method is called on a closed cache.

Functions

func New

func New(_ ...Option) cache.Cache

New creates a new in-memory Cache for development and testing.

Types

type Option

type Option func(*options)

Option is a functional option for memoryCache.

Jump to

Keyboard shortcuts

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