package
Version:
v0.10.2
Opens a new window with list of versions in this module.
Published: Jul 21, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type FileStore struct {
}
FileStore implements FileStore completely in memory and uses an LRU cache to limit memory usage
New returns a new FileStore with the given cache size (item count) and item ttl
Get returns the file at the given path and removes it
Peek returns the file at the given path without removing it
Put stores the data and returns a path with format "<random id>/<name>"
Source Files
¶
Click to show internal directories.
Click to hide internal directories.