From a19a1ab6023f0f0ad0a63832517d76fd3482230f Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 3 Nov 2020 16:27:38 +0100 Subject: [PATCH] support skydb in hns --- packages/handshake-api/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/handshake-api/src/index.js b/packages/handshake-api/src/index.js index cda9ed2f..a50775f0 100644 --- a/packages/handshake-api/src/index.js +++ b/packages/handshake-api/src/index.js @@ -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}/;