cachehook

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cachehook lets the database package use the app's cache without importing the cache package, and with it every cache driver (Redis, DynamoDB, Memcached and their SDKs). The cache package sets Remember when an app imports it; until then Remember is nil.

Index

Constants

This section is empty.

Variables

View Source
var Remember func(key string, ttl time.Duration, fn func() (any, error)) (any, error)

Remember is cache.Remember once the cache package is linked.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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