support skydb in hns
This commit is contained in:
parent
04ff998beb
commit
a19a1ab602
|
@ -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}/;
|
||||
|
|
Reference in New Issue