feat: Default cache size.

This commit is contained in:
Hayden Young 2023-02-27 16:12:08 +00:00
parent 45770b05ac
commit 8b16332bd6

View File

@ -83,7 +83,7 @@ const verifyMessage = async (signature, publicKey, data) => {
const KeyStore = async ({ storage, cache } = {}) => {
storage = storage || await LevelStorage('./keystore')
cache = cache || await LRUStorage()
cache = cache || await LRUStorage({ size: 1000 })
const close = async () => {
if (!storage) return