@cubedelement.com/realty-investor-timeline
@cubedelement.com/realty-investor-timeline / caching/value-cache / IValueCache
Defined in: caching/value-cache.ts:9
• T
expireDate:
Date
Defined in: caching/value-cache.ts:11
readonly
newDefault:unknown
Defined in: caching/value-cache.ts:12
renewalInMonths:
number
Defined in: caching/value-cache.ts:10
getValue(
currentTime
):T
[]
Defined in: caching/value-cache.ts:20
if the cache is expired, then it will return the default value. otherwise it will return the stored value
Date
T
[]
isCacheExpired(
currentDate
?):boolean
Defined in: caching/value-cache.ts:31
determines if the expiredDate is greater than or equal to currentDate. if this is the case it will be return true. Also if expiredDate is nothing, then it will return true. Also if currentDate is null, while expiredDate exists then it will be expired, aka true
Date
boolean
setValue(
value
,currentDate
):void
Defined in: caching/value-cache.ts:14
T
[]
Date
void