icepeak-0.7.1.0: A fast JSON document store with push notification support.

Safe HaskellNone
LanguageHaskell2010

Persistence

Description

This module abstracts over the details of persisting the value. Journaling is also handled here, if enabled.

Synopsis

Documentation

getValue :: PersistentValue -> STM Value Source #

Get the actual value

apply :: Modification -> PersistentValue -> IO () Source #

Apply a modification, and write it to the journal if enabled.

setupStorageBackend :: StorageBackend -> FilePath -> IO () Source #

Ensure that we can access the chosen storage file, and validate that it has the right file format