mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-27 00:12:29 +00:00
feat: Default cache size.
This commit is contained in:
parent
45770b05ac
commit
8b16332bd6
@ -83,7 +83,7 @@ const verifyMessage = async (signature, publicKey, data) => {
|
|||||||
|
|
||||||
const KeyStore = async ({ storage, cache } = {}) => {
|
const KeyStore = async ({ storage, cache } = {}) => {
|
||||||
storage = storage || await LevelStorage('./keystore')
|
storage = storage || await LevelStorage('./keystore')
|
||||||
cache = cache || await LRUStorage()
|
cache = cache || await LRUStorage({ size: 1000 })
|
||||||
|
|
||||||
const close = async () => {
|
const close = async () => {
|
||||||
if (!storage) return
|
if (!storage) return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user