MetadataCacheRepository | @here/olp-sdk-ts
Class MetadataCacheRepository
Hierarchy
- MetadataCacheRepository
Index
Constructors
Methods
Constructors
constructor
Generates the MetadataCacheRepository instance.
Parameters
cache: KeyValueCache
The KeyValueCache instance.
Returns MetadataCacheRepository
The MetadataCacheRepository instance.
Methods
get
Gets a metadata from the cache.
Parameters
rq: PartitionsRequest
hrn: string
layerId: string
Optional version: number
Returns undefined | MetadataApi.Partition[]
The base URL of the service, or undefined if the base URL does not exist.
put
Stores a key-value pair in the cache.
Parameters
rq: PartitionsRequest
hrn: string
layerId: string
partitions: MetadataApi.Partition[]
Optional version: number
Returns boolean
True if the operation is successful, false otherwise.
Generated using TypeDoc
Caches the partitions metadata using a key-value pair.