cache

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCacheMiss  = errors.New("cache miss")
	ErrCacheStale = errors.New("cache stale")
)
View Source
var CacheDir = ".obsidian_cache"

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Data      json.RawMessage `json:"data"`
	Timestamp time.Time       `json:"timestamp"`
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(ttl time.Duration) (*Store, error)

func (*Store) Clear

func (s *Store) Clear() error

func (*Store) Delete

func (s *Store) Delete(name string) error

func (*Store) Get

func (s *Store) Get(name string, v interface{}) error

func (*Store) Set

func (s *Store) Set(name string, v interface{}) error

Jump to

Keyboard shortcuts

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