SET / GET
Put a value in RAM and retrieve it by key. A missing key returns NULL.
GhostDB turns transactions into a hands-on experiment: enter commands, change memory state, and watch exactly what COMMIT or ROLLBACK does.
This browser-based mirror of `cli.py` keeps the console, memory, counters, and transaction stack in sync.
One command, one idea. Read the implementation and test its behavior in the lab above.
Put a value in RAM and retrieve it by key. A missing key returns NULL.
Find every key with a value or count how many times that value appears.
Return the active layer to its snapshot without touching the parent transaction.
Confirm a layer or pass its original values up to the parent layer.
When a transaction changes a key for the first time, GhostDB saves its previous value in the current layer. Then ROLLBACK restores the snapshot, while COMMIT moves the history to the outer layer.