realty-investor-timeline

@cubedelement.com/realty-investor-timeline


@cubedelement.com/realty-investor-timeline / caching/value-cache / IValueCache

Interface: IValueCache<T>

Defined in: caching/value-cache.ts:9

Type Parameters

T

Properties

expireDate

expireDate: Date

Defined in: caching/value-cache.ts:11


newDefault

readonly newDefault: unknown

Defined in: caching/value-cache.ts:12


renewalInMonths

renewalInMonths: number

Defined in: caching/value-cache.ts:10

Methods

getValue()

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

Parameters

currentTime

Date

Returns

T[]


isCacheExpired()

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

Parameters

currentDate?

Date

Returns

boolean


setValue()

setValue(value, currentDate): void

Defined in: caching/value-cache.ts:14

Parameters

value

T[]

currentDate

Date

Returns

void