dendrite/common/keydb
Kegan Dougal cfe97cd874 Add an LRU cache around the key DB
We actually need this for P2P because otherwise we can *segfault*
with things like: "runtime: unexpected return pc for runtime.handleEvent"
where the event is a `syscall/js` event, caused by spamming sql.js
caused by "Checking event signatures for 14 events of room state" which
hammers the key DB repeatedly in quick succession.

Using a cache fixes this, though the underlying cause is probably a bug
in the version of Go I'm on (1.13.7)
2020-03-04 18:00:12 +00:00
..
postgres Always defer *sql.Rows.Close and consult with Err (#844) 2020-02-11 14:12:21 +00:00
sqlite3 Add an LRU cache around the key DB 2020-03-04 18:00:12 +00:00
keydb.go Support sqlite in addition to postgres (#869) 2020-02-13 17:27:33 +00:00
keyring.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00