Expand description
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.
- Cache
Builder - In-memory cache builder.
- Cache
Properties - Entry properties for in-memory only cache.
- 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
Config - Fifo eviction algorithm config.
- 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.
- Hybrid
Cache - Hybrid cache that integrates in-memory cache and disk cache.
- Hybrid
Cache Builder - Hybrid cache builder.
- Hybrid
Cache Builder Phase Memory - Hybrid cache builder to modify the in-memory cache configurations.
- Hybrid
Cache Builder Phase Storage - Hybrid cache builder modify the disk cache configurations.
- Hybrid
Cache Properties - Entry properties for in-memory only cache.
- Hybrid
Cache Storage Writer - Writer for disk cache of a hybrid cache to support more flexible write APIs.
- Hybrid
Cache Writer - Writer for hybrid cache to support more flexible write APIs.
- Invalid
Ratio Picker - Evict the block with the largest invalid data ratio.
- IoHandle
- A detached I/O handle that can be polled for completion.
- LfuConfig
- w-TinyLFU eviction algorithm config.
- LruConfig
- Lru eviction algorithm config.
- 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.- S3Fifo
Config - S3Fifo eviction algorithm config.
- 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.
- Tracing
Options - Options for tracing.
- Uring
IoEngine - The io_uring based I/O engine.
- Uring
IoEngine Builder - Builder for io_uring based I/O engine.
Enums§
- Age
- Entry age in the disk cache. Used by hybrid cache.
- Cache
- In-memory cache with plug-and-play algorithms.
- Cache
Entry - A cached entry holder of the in-memory cache.
- Code
Error - Code error.
- Compression
- The compression algorithm of the disk cache.
- Error
- Errors enum for foyer.
- Event
- Event identifier.
- Eviction
Config - Eviction algorithm config.
- Fetch
State - The state of
fetch
. - Hint
- Hint for the cache eviction algorithm to decide the priority of the specific entry if needed.
- Hybrid
Cache Policy - Control the cache policy of the hybrid cache.
- IoError
- I/O related error from foyer disk cache io module.
- Iops
Counter - Device iops counter.
- Load
- Load result.
- Location
- Advice cache location for the cache entry.
- Recover
Mode - The recover mode of the disk cache.
- Runtime
Options - Options for the dedicated runtime.
- Source
- Entry source used by hybrid cache.
- Storage
Filter Result - Filter result for admission pickers and reinsertion pickers.
Traits§
- BufExt
- Extend
Buf
withget_isize()
andget_usize()
. - BufMut
Ext - Extend
BufMut
withput_isize()
andput_usize()
. - Code
- Encode/decode trait for key and value.
- Device
- Device trait.
- Device
Builder - Device builder trait.
- Engine
- Disk cache engine trait.
- Engine
Config - Disk cache engine builder trait.
- Event
Listener - Trait for the customized event listener.
- Eviction
Picker - The eviction picker for the disk cache.
- Filter
- The filter for the in-memory cache.
- IoEngine
- I/O engine builder trait.
- IoEngine
Builder - I/O engine builder trait.
- Key
- Key trait for the in-memory cache.
- Option
Ext - Extension for
std::option::Option
. - Range
Bounds Ext - The range extensions.
- Scope
- Scoped functional programming extensions.
- Storage
Filter Condition - Condition for
StorageFilter
. - Storage
Key - Key trait for the disk cache.
- Storage
Value - Value trait for the disk cache.
- Value
- Value trait for the in-memory cache.
- Weighter
- The weighter for the in-memory cache.
Type Aliases§
- Code
Result - Code Result.
- Default
Hasher - The default hasher for foyer.
- Hybrid
Cache Entry - A cached entry holder of the hybrid cache.
- Hybrid
Fetch - The future generated by
HybridCache::fetch
. - IoResult
- I/O related result type.
- Result
- Result type for foyer.