import cacheManager from "cache-manager" ; export interface Cache { wrap < T > ( key , wrapper , options ) : Promise < any > ; } export interface CacheConfig { ttl : number ; } export function createDefaultCache ( ) { return cacheManager . caching ( { store : "memory" , ttl : 60 * 60 , } ) ; }