Commit 5383da7
committed
Add Store - process-owned concurrent key-value storage
Implements ETS-like typed key-value storage for Ambitious:
- Store<K, V> with typed, concurrent HashMap semantics
- Process ownership with automatic cleanup on owner exit
- Public/Private access control
- Named store registration with whereis() lookup
- Heir support for fault-tolerant ownership transfer
- Full CRUD operations: insert, get, remove, update, etc.
- Bulk operations: insert_many, keys, values, iter, retain, clear
The Store integrates with the runtime's process exit handling to
automatically clean up stores when their owner terminates, or transfer
ownership to an heir process if configured.1 parent 9bca230 commit 5383da7
4 files changed
Lines changed: 977 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| |||
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
245 | 251 | | |
246 | 252 | | |
247 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
| |||
0 commit comments