Skip to main content

foundation-comms.metadatacache

Home > @genesislcap/foundation-comms > MetadataCache

MetadataCache interface

A Metadata cache definition

Signature:

export interface MetadataCache 

Properties

Property

Modifiers

Type

Description

cachedMetadata

Map<string, Metadata>

A map of cached metadata, with resource names as keys and metadata as values.

Methods

Method

Description

getMetadataFor(resourceName)

Returns the metadata for the specified resource name.

hasMetadataFor(resourceName)

Returns true if metadata exists for the specified resource name, otherwise false.

setMetadataFor(resourceName, metadata)

Sets the metadata for the specified resource name.