Memory Stores

Introduces in-RAM stores.

A memory store is a non-persistent store and is implemented entirely within RAM. It implements many of the operations defined by the store abstract framework; existing streams within the store can be changed.

Specifically, streams in a memory store can be:

  • overwritten

  • replaced

  • appended

  • deleted

  • created in advance of being written to.

Overwriting an existing stream can result in a shorter stream; however, a stream cannot be extended beyond its original length. Replacing a stream can result in a stream which is longer or shorter than the original.

The order in which streams are written to a memory store is not important as streams can be changed and rewritten.

The CBufStore class encapsulates an in-memory non-persistent store.