|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Store namespace owned by one trusted tenant. More...
#include <tenant.h>
Public Member Functions | |
| void | delete_item (const graph::Namespace &ns, const std::string &key) override |
| Delete a single item. | |
| std::optional< graph::StoreItem > | get (const graph::Namespace &ns, const std::string &key) const override |
| Retrieve a single item. | |
| std::vector< graph::Namespace > | list_namespaces (const graph::Namespace &prefix={}) const override |
| List all namespaces under a prefix. | |
| void | put (const graph::Namespace &ns, const std::string &key, const json &value) override |
| Store a value (create or update). | |
| std::vector< graph::StoreItem > | search (const graph::Namespace &ns_prefix, int limit=100) const override |
| Search items under a namespace prefix. | |
Store namespace owned by one trusted tenant.
The backend can be shared by tenants; all namespace operations are prefixed with an unambiguous length encoded tenant namespace.
|
overridevirtual |
Delete a single item.
| ns | Namespace path. |
| key | Item key to delete. |
Implements neograph::graph::Store.
|
overridevirtual |
Retrieve a single item.
| ns | Namespace path. |
| key | Item key. |
Implements neograph::graph::Store.
|
overridevirtual |
List all namespaces under a prefix.
| prefix | Namespace prefix to filter by (empty = list all). |
Implements neograph::graph::Store.
|
overridevirtual |
Store a value (create or update).
| ns | Namespace path for the item. |
| key | Item key within the namespace. |
| value | JSON value to store. |
Implements neograph::graph::Store.
|
overridevirtual |
Search items under a namespace prefix.
| ns_prefix | Namespace prefix to match (e.g., {"users"} matches all user items). |
| limit | Maximum number of items to return (default: 100). |
Implements neograph::graph::Store.