Expand description
Structs§
- Admit
AllPicker - A picker that always returns
true
. - Cache
Builder - In-memory cache builder.
- Cache
Properties - Entry properties for in-memory only cache.
- 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
Config - Fifo eviction algorithm config.
- Fifo
Picker - A picker that pick region to eviction with a FIFO behavior.
- 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 region with the largest invalid data ratio.
- Large
Engine Options - Large object disk cache engine default options.
- LfuConfig
- w-TinyLFU eviction algorithm config.
- LruConfig
- Lru eviction algorithm config.
- 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.- S3Fifo
Config - S3Fifo eviction algorithm config.
- 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 Builder - The builder for the tombstone log config.
- Tracing
Options - Options for tracing.
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.
- Engine
Engine
controls the ratio of the large object disk cache and the small object disk cache.- 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.
- Iops
Counter - Device iops counter.
- Load
- Load result.
- Location
- Advice cache location for the cache entry.
- 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.
- Source
- Entry source used by hybrid cache.
Traits§
- Admission
Picker - The admission picker for the disk cache.
- BufExt
- Extend
Buf
withget_isize()
andget_usize()
. - BufMut
Ext - Extend
BufMut
withput_isize()
andput_usize()
. - Code
- Encode/decode trait for key and value.
- Dev
Dev
represents 4K aligned block device.- DevConfig
- Config for the device.
- DevExt
- Device extend interfaces.
- Event
Listener - Trait for the customized event listener.
- Eviction
Picker - The eviction picker for the disk cache.
- Key
- Key trait for the in-memory cache.
- Option
Ext - Extension for
std::option::Option
. - Range
Bounds Ext - The range extensions.
- Reinsertion
Picker - The reinsertion picker for the disk cache.
- Scope
- Scoped functional programming extensions.
- Storage
- The storage trait for the disk cache storage engine.
- 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
.