Documentation
¶
Overview ¶
Package filecache provides a local filesystem-backed implementation of cache.ReadWriterOf[blob.Entry] with persistent snapshots and immutable blob files.
Index ¶
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) Delete(ctx context.Context, key []byte) error
- func (s *Storage) Read(ctx context.Context, key []byte) (blob.Entry, error)
- func (s *Storage) Write(ctx context.Context, key []byte, entry blob.Entry) error
- func (s *Storage) WriteAndRead(ctx context.Context, key []byte, entry blob.Entry) (blob.Entry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a local filesystem-backed blob storage.
func NewStorage ¶
NewStorage creates a local filesystem-backed blob storage.
Click to show internal directories.
Click to hide internal directories.