cache

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package cache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedItem

type CachedItem[T any] struct {
	CachedData T
	ExpiredAt  time.Time
}

type Interface

type Interface[T any] interface {
	Set(key string, value T, expiredAt time.Time)
	SetWithTTL(key string, value T, ttl time.Duration)
	Get(key string) (T, bool)
	Del(key string)
	Close()
}

Jump to

Keyboard shortcuts

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