Skip to content

Commit 1018bca

Browse files
authored
chore: export storage config (#50)
Signed-off-by: MrCroxx <[email protected]>
1 parent 8979084 commit 1018bca

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

foyer-storage/src/lib.rs

+30
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ pub type LruFsStore<K, V, AP, RP> = store::Store<
4646
foyer_intrusive::eviction::lru::LruLink,
4747
>;
4848

49+
pub type LruFsStoreConfig<AP, RP> = store::StoreConfig<
50+
device::fs::FsDevice,
51+
AP,
52+
foyer_intrusive::eviction::lru::Lru<
53+
region_manager::RegionEpItemAdapter<foyer_intrusive::eviction::lru::LruLink>,
54+
>,
55+
RP,
56+
foyer_intrusive::eviction::lru::LruLink,
57+
>;
58+
4959
pub type LfuFsStore<K, V, AP, RP> = store::Store<
5060
K,
5161
V,
@@ -59,6 +69,16 @@ pub type LfuFsStore<K, V, AP, RP> = store::Store<
5969
foyer_intrusive::eviction::lfu::LfuLink,
6070
>;
6171

72+
pub type LfuFsStoreConfig<AP, RP> = store::StoreConfig<
73+
device::fs::FsDevice,
74+
AP,
75+
foyer_intrusive::eviction::lfu::Lfu<
76+
region_manager::RegionEpItemAdapter<foyer_intrusive::eviction::lfu::LfuLink>,
77+
>,
78+
RP,
79+
foyer_intrusive::eviction::lfu::LfuLink,
80+
>;
81+
6282
pub type FifoFsStore<K, V, AP, RP> = store::Store<
6383
K,
6484
V,
@@ -71,3 +91,13 @@ pub type FifoFsStore<K, V, AP, RP> = store::Store<
7191
RP,
7292
foyer_intrusive::eviction::fifo::FifoLink,
7393
>;
94+
95+
pub type FifoFsStoreConfig<AP, RP> = store::StoreConfig<
96+
device::fs::FsDevice,
97+
AP,
98+
foyer_intrusive::eviction::fifo::Fifo<
99+
region_manager::RegionEpItemAdapter<foyer_intrusive::eviction::fifo::FifoLink>,
100+
>,
101+
RP,
102+
foyer_intrusive::eviction::fifo::FifoLink,
103+
>;

0 commit comments

Comments
 (0)