File entries into hive memory through the hive-spi IMemoryStore port.
The port upserts and nothing more, so this sink does what hive-mcp's
memory add does around it: a content hash, a duplicate check in the
project, the scope:project:<id> tag scope filters match on, and an expiry
from the duration. It never throws; every outcome is a Result.
File entries into hive memory through the hive-spi IMemoryStore port. The port upserts and nothing more, so this sink does what hive-mcp's `memory add` does around it: a content hash, a duplicate check in the project, the `scope:project:<id>` tag scope filters match on, and an expiry from the duration. It never throws; every outcome is a Result.
Days each duration lives, as hive-mcp counts them; nil is permanent.
Days each duration lives, as hive-mcp counts them; nil is permanent.
(file! store entry)Result of filing entry into store: ok {:id id :duplicate? bool}.
An entry whose content already exists in the project is not written again.
Errors: :rss/memory-refused (the store answered without an id) and
:rss/memory-failed (it threw).
Result of filing `entry` into `store`: ok `{:id id :duplicate? bool}`.
An entry whose content already exists in the project is not written again.
Errors: `:rss/memory-refused` (the store answered without an id) and
`:rss/memory-failed` (it threw).(prepare entry now)entry as the store receives it, stamped at now (a ZonedDateTime).
`entry` as the store receives it, stamped at `now` (a ZonedDateTime).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |