Skip to main content

CacheService.set()

Home > @backstage/backend-plugin-api > CacheService > set

Writes the given data to a cache store, associated with the given key. An optional TTL may also be provided, otherwise it defaults to the TTL that was provided when the client was instantiated.

Signature:

set(key: string, value: JsonValue, options?: CacheServiceSetOptions): Promise<void>;

Parameters

ParameterTypeDescription
keystring
valueJsonValue
optionsCacheServiceSetOptions(Optional)

Returns:

Promise<void>