dbcache

package
v1.7.22 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dbcache tracks writes to small configuration tables. Caches retain values only while the table revision is unchanged; metrics are never cached here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidateAll

func InvalidateAll()

func Revision

func Revision(table string) uint64

Revision returns the current revision of a watched table. A table that is not watched reports 0 instead of panicking: callers derive the name from the data they cache, and a nil map entry used to dereference nil. 0 is stable for an unwatched table, so a caller comparing two readings still sees "unchanged".

func Watch

func Watch(db *gorm.DB)

Types

This section is empty.

Jump to

Keyboard shortcuts

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