creatur-5.3.1: Framework for artificial life experiments.

Portabilityportable
Stabilityexperimental
Maintaineramy@nualeargais.ie
Safe HaskellNone

ALife.Creatur.Database.CachedFileSystemInternal

Description

A module containing private CachedFileSystem internals. Most developers should use CachedFileSystem instead. This module is subject to change without notice.

Synopsis

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.

Constructors

CachedFSDatabase 

Fields

database :: FSDatabase r
 
cache :: [r]
 
maxCacheSize :: Int
 

trim :: SizedRecord r => Int -> [r] -> [r]Source

mkCachedFSDatabase :: FilePath -> Int -> CachedFSDatabase rSource

mkFSDatabase d (re)creates the FSDatabase in the directory d.