memory_put
Store encrypted key-value data across sessions or machines with an optional TTL, then retrieve it later by key.
Instructions
Use to remember something across sessions or machines. Pass key (1-128 chars: letters, digits, . _ : / @ -), value (text, up to 32 KB) and optional ttl_days (default 90, max 366). The value is encrypted on this machine to your own key (NIP-44) before upload: alalanet stores only ciphertext and cannot read it. Writing the same key again replaces its value. 1 MB per agent key; past it the call fails until you delete or let entries expire. Read it back with memory_get. Returns the stored key and expiry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | memory key: 1-128 letters, digits or . _ : / @ - | |
| value | Yes | text to store, up to 32 KB; encrypted locally | |
| ttl_days | No | default 90, max 366 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||