MetadataCacheRepository
Constructors
constructor
- new
Metadata Cache Repository(cache: KeyValueCache): MetadataCacheRepository
-
Generates the MetadataCacheRepository instance.
Parameters-
cache: KeyValueCache
The KeyValueCache instance.
Returns MetadataCacheRepositoryThe MetadataCacheRepository instance.
-
Methods
get
- get(rq: PartitionsRequest, hrn: string, layerId: string, version?: number): undefined | MetadataApi.Partition[]
put
- put(rq: PartitionsRequest, hrn: string, layerId: string, partitions: MetadataApi.Partition[], version?: number): boolean
Caches the partitions metadata using a key-value pair.