| Name | Type | Description |
|---|---|---|
namespace* | Sequence[str] | A list of strings representing the namespace path. |
key* | str | The unique identifier for the item within the namespace. |
value* | Mapping[str, Any] | |
index | Literal[False] | list[str] | None | Default: None |
ttl | int | None | Default: None |
headers | Mapping[str, str] | None | Default: None |
params | QueryParamTypes | None | Default: None |
Store or update an item.
client = get_sync_client(url="http://localhost:8123")
client.store.put_item(
["documents", "user123"],
key="item456",
value={"title": "My Document", "content": "Hello World"}
)A dictionary containing the item's data.
Controls search indexing - None (use defaults), False (disable), or list of field paths to index.
Optional time-to-live in minutes for the item, or None for no expiration.
Optional custom headers to include with the request.
Optional query parameters to include with the request.