diskcache

package
v0.0.0-...-b43479a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package diskcache provides a bounded persistent cache for remote file blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() (string, error)

Types

type Cache

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

func New

func New(dir string, limit int64) (*Cache, error)

func (*Cache) Get

func (c *Cache) Get(k string) ([]byte, bool, error)

func (*Cache) Put

func (c *Cache) Put(k string, b []byte) error

Jump to

Keyboard shortcuts

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