Move auth_chain cache to db.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2026-01-22 09:31:46 +00:00
1 parent 7b22e7930a
commit afcb2315ee
4 files changed
+87 -149

No files matched your search

+13 -1
View File
@@ -34,6 +34,15 @@ pub(super) static MAPS: &[Descriptor] = &[
name: "aliasid_alias",
..descriptor::RANDOM_SMALL
},
Descriptor {
name: "authchainkey_authchain",
cache_disp: CacheDisp::SharedWith("shorteventid_authchain"),
index_size: 512,
block_size: 4096,
key_size_hint: Some(8),
val_size_hint: Some(1024),
..descriptor::RANDOM_CACHE
},
Descriptor {
name: "backupid_algorithm",
..descriptor::RANDOM_SMALL
@@ -279,8 +288,11 @@ pub(super) static MAPS: &[Descriptor] = &[
},
Descriptor {
name: "shorteventid_authchain",
cache_disp: CacheDisp::Unique,
cache_disp: CacheDisp::SharedWith("authchainkey_authchain"),
key_size_hint: Some(8),
val_size_hint: Some(1024),
index_size: 512,
block_size: 4096,
..descriptor::SEQUENTIAL
},
Descriptor {