Expand description
A disk cache engine that serves as the disk cache backend of foyer
.
Structs§
- Admit
All - Admit all entries.
- Block
- A block is a logical partition of a device. It is used to manage the device’s storage space.
- Block
Engine Builder - Builder for the block-based disk cache engine.
- Block
Statistics - Block statistics.
- Combined
Device Builder - Builder for a combined device that wraps multiple devices and allows access to their blocks.
- Engine
Build Context - Context for building the disk cache engine.
- Estimated
Size - A condition that checks if the estimated size is within a specified range.
- Eviction
Info - Eviction related information for eviction picker to make decisions.
- Fifo
Picker - A picker that pick block to eviction with a FIFO behavior.
- File
Device Builder - Builder for a file-based device that manages a single file or a raw block device.
- FsDevice
Builder - Builder for a filesystem-based device that manages files in a directory.
- Invalid
Ratio Picker - Evict the block with the largest invalid data ratio.
- IoHandle
- A detached I/O handle that can be polled for completion.
- Noop
Device Builder - Builder for a no-operation mock device.
- Noop
IoEngine - A mock I/O engine that does nothing.
- Noop
IoEngine Builder - Builder for a no-operation mock I/O engine.
- Partial
Device Builder - Builder for a partial device that wraps another device and allows access to only a subset of capacity.
- Psync
IoEngine - The synchronous I/O engine that uses pread(2)/pwrite(2) and tokio thread pool for reading and writing.
- Psync
IoEngine Builder - Builder for synchronous I/O engine with pread(2)/pwrite(2).
- RawFile
- Raw os file resource.
- Reject
All - Reject all entries.
- Runtime
Runtime
holds the runtime reference and non-cloneable handles to prevent handle usage after runtime shutdown.- Statistics
- The statistics of the device.
- Storage
Filter StorageFilter
filters entries based on multiple conditions for admission and reinsertion.- Store
- The disk cache engine that serves as the storage backend of
foyer
. - Store
Builder - The builder of the disk cache.
- Throttle
- Throttle config for the device.
- Tokio
Runtime Options - Tokio runtime configuration.
- Uring
IoEngine - The io_uring based I/O engine.
- Uring
IoEngine Builder - Builder for io_uring based I/O engine.
Enums§
- Compression
- The compression algorithm of the disk cache.
- Error
- Disk cache error type.
- IoError
- I/O related error from foyer disk cache io module.
- Iops
Counter - Device iops counter.
- Load
- Load result.
- Recover
Mode - The recover mode of the disk cache.
- Runtime
Options - Options for the dedicated runtime.
- Storage
Filter Result - Filter result for admission pickers and reinsertion pickers.
Traits§
- Device
- Device trait.
- Device
Builder - Device builder trait.
- Engine
- Disk cache engine trait.
- Engine
Config - Disk cache engine builder trait.
- Eviction
Picker - The eviction picker for the disk cache.
- IoEngine
- I/O engine builder trait.
- IoEngine
Builder - I/O engine builder trait.
- Storage
Filter Condition - Condition for
StorageFilter
.