Documentation
¶
Overview ¶
Package localfs provides local filesystem persistence for bdcache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[K comparable, V any](cacheID string, dir string) (bdcache.PersistenceLayer[K, V], error)
New creates a new file-based persistence layer. The cacheID is used as a subdirectory name under the OS cache directory. If dir is provided (non-empty), it's used as the base directory instead of OS cache dir. This is useful for testing with temporary directories.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.