Retrieve a single item.
| Name | Type | Description |
|---|---|---|
namespace* | string[] | A list of strings representing the namespace path. |
key* | string | The unique identifier for the item. |
options | __type |
const item = await client.store.getItem(
["documents", "user123"],
"item456",
{ refreshTtl: true }
);
console.log(item);
// {
// namespace: ["documents", "user123"],
// key: "item456",
// value: { title: "My Document", content: "Hello World" },
// createdAt: "2024-07-30T12:00:00Z",
// updatedAt: "2024-07-30T12:00:00Z"
// }