Skip to content

Commit

Permalink
chore: export storage config (#50)
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx authored Jul 5, 2023
1 parent b6bc941 commit 523105b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions foyer-storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ pub type LruFsStore<K, V, AP, RP> = store::Store<
foyer_intrusive::eviction::lru::LruLink,
>;

pub type LruFsStoreConfig<AP, RP> = store::StoreConfig<
device::fs::FsDevice,
AP,
foyer_intrusive::eviction::lru::Lru<
region_manager::RegionEpItemAdapter<foyer_intrusive::eviction::lru::LruLink>,
>,
RP,
foyer_intrusive::eviction::lru::LruLink,
>;

pub type LfuFsStore<K, V, AP, RP> = store::Store<
K,
V,
Expand All @@ -59,6 +69,16 @@ pub type LfuFsStore<K, V, AP, RP> = store::Store<
foyer_intrusive::eviction::lfu::LfuLink,
>;

pub type LfuFsStoreConfig<AP, RP> = store::StoreConfig<
device::fs::FsDevice,
AP,
foyer_intrusive::eviction::lfu::Lfu<
region_manager::RegionEpItemAdapter<foyer_intrusive::eviction::lfu::LfuLink>,
>,
RP,
foyer_intrusive::eviction::lfu::LfuLink,
>;

pub type FifoFsStore<K, V, AP, RP> = store::Store<
K,
V,
Expand All @@ -71,3 +91,13 @@ pub type FifoFsStore<K, V, AP, RP> = store::Store<
RP,
foyer_intrusive::eviction::fifo::FifoLink,
>;

pub type FifoFsStoreConfig<AP, RP> = store::StoreConfig<
device::fs::FsDevice,
AP,
foyer_intrusive::eviction::fifo::Fifo<
region_manager::RegionEpItemAdapter<foyer_intrusive::eviction::fifo::FifoLink>,
>,
RP,
foyer_intrusive::eviction::fifo::FifoLink,
>;

0 comments on commit 523105b

Please sign in to comment.