Package com.privatechain.storage.memory
package com.privatechain.storage.memory
In-memory storage backend — ephemeral, zero-dependency block storage backed by
a
LinkedHashMap (FR-STOR-02).
InMemoryStorage is the default storage
used by BlockchainConfig.builder() when no
explicit backend is configured. It is suitable for unit tests, integration tests,
and runnable demos where persistence across JVM restarts is not required.
Thread safety: all reads use a shared ReadLock; writes use an exclusive
WriteLock via a ReentrantReadWriteLock
(FR-STOR-06).
- Since:
- 1.0.0
-
Classes