improvement: allow rocksdb again
This commit is contained in:
parent
b25354c747
commit
1d647a1a9a
8 changed files with 664 additions and 297 deletions
|
@ -154,6 +154,9 @@ pub type Engine = abstraction::sqlite::Engine;
|
|||
#[cfg(feature = "heed")]
|
||||
pub type Engine = abstraction::heed::Engine;
|
||||
|
||||
#[cfg(feature = "rocksdb")]
|
||||
pub type Engine = abstraction::rocksdb::Engine;
|
||||
|
||||
pub struct Database {
|
||||
_db: Arc<Engine>,
|
||||
pub globals: globals::Globals,
|
||||
|
@ -314,10 +317,10 @@ impl Database {
|
|||
.expect("pdu cache capacity fits into usize"),
|
||||
)),
|
||||
auth_chain_cache: Mutex::new(LruCache::new(1_000_000)),
|
||||
shorteventid_cache: Mutex::new(LruCache::new(1_000_000)),
|
||||
eventidshort_cache: Mutex::new(LruCache::new(1_000_000)),
|
||||
shortstatekey_cache: Mutex::new(LruCache::new(1_000_000)),
|
||||
statekeyshort_cache: Mutex::new(LruCache::new(1_000_000)),
|
||||
shorteventid_cache: Mutex::new(LruCache::new(100_000_000)),
|
||||
eventidshort_cache: Mutex::new(LruCache::new(100_000_000)),
|
||||
shortstatekey_cache: Mutex::new(LruCache::new(100_000_000)),
|
||||
statekeyshort_cache: Mutex::new(LruCache::new(100_000_000)),
|
||||
our_real_users_cache: RwLock::new(HashMap::new()),
|
||||
appservice_in_room_cache: RwLock::new(HashMap::new()),
|
||||
stateinfo_cache: Mutex::new(LruCache::new(1000)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue