This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hash from 'object-hash' | |
import sizeof from 'object-sizeof' | |
import lruCache from 'lru-cache' | |
const cacheEnabled = true | |
const cacheMaxAge = 30 * 60 * 1000 | |
const cacheMaxSize = 128 * 1000 * 1000 | |
const getCacheKey = obj => hash(obj) |