@wildix/wim-cache-client > PutEntitiesToGeneralCacheCommand
PutEntitiesToGeneralCacheCommand class
Adds entities to the general cache
Signature:
export declare class PutEntitiesToGeneralCacheCommand extends PutEntitiesToGeneralCacheCommand_base
Extends: PutEntitiesToGeneralCacheCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WimCacheClient, PutEntitiesToGeneralCacheCommand } from "@wildix/wim-cache-client"; // ES Modules import
// const { WimCacheClient, PutEntitiesToGeneralCacheCommand } = require("@wildix/wim-cache-client"); // CommonJS import
const client = new WimCacheClient(config);
const input = { // PutEntitiesToGeneralCacheInput
items: [ // GeneralEntityInputList
{ // GeneralEntityInputData
IntegrationId: "STRING_VALUE", // required
IntegrationOrder: Number("int"), // required
Name: "STRING_VALUE",
Id: "STRING_VALUE",
Phone: "STRING_VALUE",
Email: "STRING_VALUE",
OwnerId: "STRING_VALUE",
Avatar: "STRING_VALUE",
UpdatedAt: "STRING_VALUE",
CustomData: { // GeneralDataMap
"<keys>": "STRING_VALUE",
},
},
],
};
const command = new PutEntitiesToGeneralCacheCommand(input);
const response = await client.send(command);
// {};