Methods
GetCache
- GetCache<T>(name: string): undefined | T
Type parameters
Parameters
Returns undefined | T
GetValue
- GetValue<T>(name: string, defaultValueIfNotExist?: T): undefined | T
Type parameters
Parameters
name: string
Optional defaultValueIfNotExist: T
Returns undefined | T
RemoveCache
- RemoveCache(...names: string[]): void
Parameters
Returns void
RemoveValue
- RemoveValue(name: string): void
Parameters
Returns void
SetCacheWithDate
- SetCacheWithDate(name: string, value: unknown, absoluteExpiration: Date): void
Parameters
name: string
value: unknown
absoluteExpiration: Date
Returns void
SetCacheWithHour
- SetCacheWithHour(name: string, value: unknown, hour: number): void
Parameters
name: string
value: unknown
hour: number
Returns void
SetCacheWithMilliseconds
- SetCacheWithMilliseconds(name: string, value: unknown, millisecond: number): void
Parameters
name: string
value: unknown
millisecond: number
Returns void
SetCacheWithMinute
- SetCacheWithMinute(name: string, value: unknown, minute: number): void
Parameters
name: string
value: unknown
minute: number
Returns void
SetValue
- SetValue(name: string, value: any): void
Parameters
Returns void
4.0.0
2021-12-14