Expand description
A disk cache engine that serves as the disk cache backend of foyer
.
Structs§
- Admit
AllPicker - A picker that always returns
true
. - Chained
Admission Picker - Only admit on all chained admission pickers pick.
- Chained
Admission Picker Builder - A builder for
ChainedAdmissionPicker
. - Direct
File Device - A device that uses a single direct i/o file.
- Direct
File Device Options DirectFileDeviceOptions
is used to build the options for the direct fs device.- Direct
FsDevice - A device that uses direct i/o files in a directory of a file system.
- Direct
FsDevice Options DirectFsDeviceOptions
is used to build the options for the direct fs device.- Eviction
Info - Eviction related information for eviction picker to make decisions.
- Fifo
Picker - A picker that pick region to eviction with a FIFO behavior.
- Invalid
Ratio Picker - Evict the region with the largest invalid data ratio.
- IoBuffer
- 4K-aligned capacity-fixed buffer.
- IoThrottler
IoThrottler
throttles IO operation in both iops and throughput aspects.- IoThrottler
Picker - A picker that picks based on the disk statistics and the given throttle args.
- Large
Engine Options - Large object disk cache engine default options.
- Owned
IoSlice - A 4K-aligned slice on the io buffer with ownership.
- Owned
Slice - A slice on the io buffer with ownership.
- Region
- A region is a logical partition of a device. It is used to manage the device’s storage space.
- Region
Statistics - Region statistics.
- Reject
AllPicker - A picker that always returns
false
. - Runtime
Runtime
holds the runtime reference and non-cloneable handles to prevent handle usage after runtime shutdown.- Shared
IoSlice - A 4K-aligned slice on the io buffer that can be shared.
- Small
Engine Options - Small object disk cache engine default options.
- Statistics
- The statistics of the disk cache, which is used by the pickers.
- 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.
- Tombstone
LogConfig - The configurations for the tombstone log.
- Tombstone
LogConfig Builder - The builder for the tombstone log config.
Enums§
- Compression
- The compression algorithm of the disk cache.
- Device
Options - The configurations for the device.
- Engine
Engine
controls the ratio of the large object disk cache and the small object disk cache.- Error
- Disk cache error type.
- IoThrottler
Target - Target of the io throttler.
- Iops
Counter - Device iops counter.
- Load
- Load result.
- Order
- Order of ops.
- Pick
- Pick result for admission pickers and reinsertion pickers.
- Recover
Mode - The recover mode of the disk cache.
- Runtime
Options - Options for the dedicated runtime.
Traits§
- Admission
Picker - The admission picker for the disk cache.
- Dev
Dev
represents 4K aligned block device.- DevConfig
- Config for the device.
- DevExt
- Device extend interfaces.
- Eviction
Picker - The eviction picker for the disk cache.
- IoBuf
- 4K-aligned immutable buf for direct I/O.
- IoBuf
Mut - 4K-aligned mutable buf for direct I/O.
- Reinsertion
Picker - The reinsertion picker for the disk cache.
- Storage
- The storage trait for the disk cache storage engine.
Type Aliases§
- Result
- Disk cache result type.