type CacheGet = (key: string) => Promise; type CacheSet = (key: string, value: T, expiration?: number) => Promise; type CacheExpire = (key: string) => Promise; type CacheHas = (key: string) => Promise; interface CacheService { get: CacheGet; set: CacheSet; expire: CacheExpire; has: CacheHas; } export default CacheService;