@cubedelement.com/realty-investor-timeline
@cubedelement.com/realty-investor-timeline / caching/value-cache / ValueCache
Defined in: caching/value-cache.ts:34
• T
IValueCache
<T
>new ValueCache<
T
>(expireDate
,defaultValue
,renewalInMonths
):ValueCache
<T
>
Defined in: caching/value-cache.ts:56
Date
T
[]
number
ValueCache
<T
>
protected
_value:T
[]
Defined in: caching/value-cache.ts:106
renewalInMonths:
number
Defined in: caching/value-cache.ts:35
get expireDate():
Date
Defined in: caching/value-cache.ts:37
Date
set expireDate(
value
):void
Defined in: caching/value-cache.ts:41
Date
void
get newDefault():
T
[]
Defined in: caching/value-cache.ts:48
T
[]
getValue(
currentTime
):T
[]
Defined in: caching/value-cache.ts:76
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:94
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:63
T
[]
Date
void