All files / src/InMemoryCache defaults.ts

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 848x   48x   48x 48x 48x  
import { Seconds } from '@cardano-sdk/core';
 
export const DB_CACHE_TTL_DEFAULT = Seconds(2 * 60 * 60); // Two hours
 
export const CACHE_TTL_LOWER_LIMIT = Seconds(60); // One minute
export const CACHE_TTL_UPPER_LIMIT = Seconds(2 * 24 * 60 * 60); // Two days
export const UNLIMITED_CACHE_TTL = 0;