Options
All
  • Public
  • Public/Protected
  • All
Menu

A data store that saves to and loads from the memory.

For more information about its methods see DataStore.

Hierarchy

  • MemoryStore

Implements

Index

Properties

Private counties

counties: {} | undefined

Private data

data: {} | undefined

Private savedAt

savedAt: Date | undefined

Private sourceLastUpdatedAt

sourceLastUpdatedAt: Date | undefined

Private states

states: {} | undefined

Methods

clearData

  • clearData(): Promise<void>

getCountiesData

  • getCountiesData(countryOrRegion: string, provinceOrState: string): Promise<InternalLocationData[]>

getLocationCount

  • getLocationCount(): Promise<number>

getLocationData

getLocationsList

  • getLocationsList(): Promise<string[]>

getSavedAt

  • getSavedAt(): Promise<Date | undefined>

getSourceLastUpdatedAt

  • getSourceLastUpdatedAt(): Promise<Date | undefined>

getStatesData

init

  • init(): Promise<void>

putLocationData

setSourceLastUpdatedAt

  • setSourceLastUpdatedAt(sourceLastUpdatedAt: Date): Promise<void>

Generated using TypeDoc