resources

package
v0.0.0-...-2e8b532 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CacheCapacity      int
	MaxInFlight        int
	SpillDirectory     string
	CheckpointPath     string
	CheckpointInterval time.Duration
}

type Manager

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

func NewManager

func NewManager(cfg Config) (*Manager, error)

func (*Manager) Acquire

func (m *Manager) Acquire(ctx context.Context) error

func (*Manager) Checkpoint

func (m *Manager) Checkpoint(u string)

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) GetPage

func (m *Manager) GetPage(key string) (*engmodels.Page, bool, error)

func (*Manager) Release

func (m *Manager) Release()

func (*Manager) Stats

func (m *Manager) Stats() Stats

func (*Manager) StorePage

func (m *Manager) StorePage(key string, page *engmodels.Page) error

type Stats

type Stats struct {
	CacheEntries     int
	SpillFiles       int
	InFlight         int
	CheckpointQueued int
}

Jump to

Keyboard shortcuts

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