creatur-5.9.30: Framework for artificial life experiments.
Copyright(c) 2014-2021 Amy de Buitléir
LicenseBSD-style
Maintaineramy@nualeargais.ie
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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.

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.

Instances

Instances details
Eq r => Eq (CachedFSDatabase r) Source # 
Instance details

Defined in ALife.Creatur.Database.CachedFileSystemInternal

Show r => Show (CachedFSDatabase r) Source # 
Instance details

Defined in ALife.Creatur.Database.CachedFileSystemInternal

SizedRecord r => Database (CachedFSDatabase r) Source # 
Instance details

Defined in ALife.Creatur.Database.CachedFileSystemInternal

Associated Types

type DBRecord (CachedFSDatabase r) Source #

type DBRecord (CachedFSDatabase r) Source # 
Instance details

Defined in ALife.Creatur.Database.CachedFileSystemInternal

mkCachedFSDatabase :: FilePath -> Int -> CachedFSDatabase r Source #

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