storage

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCountersCache

func NewCountersCache(ttl time.Duration) (*countersCache, error)

NewCountersCache creates a new instance of type counters cache

func NewSQLiteWrapper

func NewSQLiteWrapper(dbPath string, counters CountersCache) (*sqliteWrapper, error)

NewSQLiteWrapper creates a new instance of SQLiteWrapper

Types

type CountersCache

type CountersCache interface {
	Get(key string) uint64
	Set(key string, counter uint64)
	Remove(key string)
	Sweep()
	IsInterfaceNil() bool
}

CountersCache is the interface for the counters cache

Jump to

Keyboard shortcuts

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