|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
Abstract interface for cross-thread shared memory. More...
#include <store.h>
Public Member Functions | |
| virtual void | delete_item (const Namespace &ns, const std::string &key)=0 |
| Delete a single item. | |
| virtual std::optional< StoreItem > | get (const Namespace &ns, const std::string &key) const =0 |
| Retrieve a single item. | |
| virtual std::vector< Namespace > | list_namespaces (const Namespace &prefix={}) const =0 |
| List all namespaces under a prefix. | |
| virtual void | put (const Namespace &ns, const std::string &key, const json &value)=0 |
| Store a value (create or update). | |
| virtual std::vector< StoreItem > | search (const Namespace &ns_prefix, int limit=100) const =0 |
| Search items under a namespace prefix. | |
Abstract interface for cross-thread shared memory.
Provides namespaced key-value storage accessible from any graph thread. Implement this to use databases or other persistence backends.
|
pure virtual |
Delete a single item.
| ns | Namespace path. |
| key | Item key to delete. |
Implemented in neograph::graph::InMemoryStore.
|
pure virtual |
Retrieve a single item.
| ns | Namespace path. |
| key | Item key. |
Implemented in neograph::graph::InMemoryStore.
|
pure virtual |
List all namespaces under a prefix.
| prefix | Namespace prefix to filter by (empty = list all). |
Implemented in neograph::graph::InMemoryStore.
|
pure virtual |
Store a value (create or update).
| ns | Namespace path for the item. |
| key | Item key within the namespace. |
| value | JSON value to store. |
Implemented in neograph::graph::InMemoryStore.
|
pure virtual |
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). |
Implemented in neograph::graph::InMemoryStore.