cache

package
v0.0.0-...-ad95247 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonCache

type JsonCache[T any] struct {
	Domain string
	Driver ports.CacheDriver
}

func NewJsonCache

func NewJsonCache[T any](domain string, driver ports.CacheDriver) JsonCache[T]

func (JsonCache[T]) Get

func (j JsonCache[T]) Get(key string) (*T, error)

func (JsonCache[T]) Set

func (j JsonCache[T]) Set(key string, value T) error

Jump to

Keyboard shortcuts

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