happstack-state-6.1.4: Event-based distributed state.

Safe HaskellNone

Happstack.State.Saver.Impl.Memory

Documentation

type Store = Map String (Map Int ByteString)Source

memoryReader :: Serialize a => MVar Store -> String -> Int -> IO (ReaderStream a)Source

memoryWriter :: Serialize a => MVar Store -> String -> Int -> IO (WriterStream a)Source

parseAll :: Serialize a => ByteString -> [a]Source

addToStore :: (Ord a, Ord b) => a -> b -> ByteString -> Map a (Map b ByteString) -> Map a (Map b ByteString)Source

setStore :: Ord a => a -> b -> c -> Map a (Map b c) -> Map a (Map b c)Source