| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | amy@nualeargais.ie |
| Safe Haskell | None |
ALife.Creatur.Database.CachedFileSystem
Description
A database that stores each record in a separate file and maintains a cache of recently-accessed records. The name of the file is the record's key.
- data CachedFSDatabase r
- mkCachedFSDatabase :: FilePath -> Int -> CachedFSDatabase r
Documentation
data CachedFSDatabase r Source
A simple database where each record is stored in a separate file, and the name of the file is the record's key.
Instances
| Eq r => Eq (CachedFSDatabase r) | |
| Show r => Show (CachedFSDatabase r) | |
| SizedRecord r => Database (CachedFSDatabase r) |
mkCachedFSDatabase :: FilePath -> Int -> CachedFSDatabase rSource
(re)creates the FSDatabase in the
directory mkFSDatabase dd.