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
Parameter |
Type |
Description |
---|---|---|
key |
string | |
value | ||
options |
(Optional) |
Promise<void>