support skydb in hns

This commit is contained in:
Karol Wypchlo 2020-11-03 16:27:38 +01:00
parent 04ff998beb
commit a19a1ab602
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ const clientOptions = {
apiKey: hsdApiKey,
};
const client = new NodeClient(clientOptions);
const cache = new NodeCache({ stdTTL: 1 }); // cache for 5 minutes
const cache = new NodeCache({ stdTTL: 300 }); // cache for 5 minutes
// Match both `sia://HASH` and `HASH` links.
const startsWithSkylinkRegExp = /^(sia:\/\/)?[a-zA-Z0-9_-]{46}/;