From 48edb4d5899c4dbe2ebd26b0e6da9948251b2ef1 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <me@adhisimon.org>
Date: Mon, 19 Aug 2019 14:04:57 +0700
Subject: [PATCH] Prefix TTL_SECS as a constant

---
 lib/prefixes/index.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/prefixes/index.js b/lib/prefixes/index.js
index e0fe34f..0934e08 100644
--- a/lib/prefixes/index.js
+++ b/lib/prefixes/index.js
@@ -1,10 +1,12 @@
 'use strict';
 
+const TTL_SECS = 30;
+
 const coreapi = require('komodo-sdk/coreapi');
 const NodeCache = require( "node-cache" );
 
 const cache = new NodeCache({
-    stdTTL: 60,    
+    stdTTL: TTL_SECS,    
 });
 
 async function lookup(number) {
-- 
1.9.0