Commit 48edb4d5899c4dbe2ebd26b0e6da9948251b2ef1

Authored by Adhidarma Hadiwinoto
1 parent 4a1706c99f
Exists in master

Prefix TTL_SECS as a constant

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

lib/prefixes/index.js
1 1 'use strict';
2 2  
  3 +const TTL_SECS = 30;
  4 +
3 5 const coreapi = require('komodo-sdk/coreapi');
4 6 const NodeCache = require( "node-cache" );
5 7  
6 8 const cache = new NodeCache({
7   - stdTTL: 60,
  9 + stdTTL: TTL_SECS,
8 10 });
9 11  
10 12 async function lookup(number) {