Module

Perspectives.DomeinCache

#modifyDomeinFileInCache

modifyDomeinFileInCache :: (DomeinFile -> DomeinFile) -> Namespace -> MonadPerspectives Unit

Change the domeinfile in cache. NOTA BENE: does not store the modified file in Couchdb!

#retrieveDomeinFile

retrieveDomeinFile :: Namespace -> MonadPerspectives DomeinFile

Retrieve a domain file. First looks in the cache. If not found, retrieves it from the database and caches it.

#DatabaseName

type DatabaseName = String

A name not preceded or followed by a forward slash.

#saveCachedDomeinFile

#storeDomeinFileInCouchdb

storeDomeinFileInCouchdb :: DomeinFile -> MonadPerspectives Unit

Either create or modify the DomeinFile in couchdb. Caches. Do not use createDomeinFileInCouchdb or modifyDomeinFileInCouchdb directly. If the model is not found in the cache, assumes it is not in the database either.

#removeDomeinFileFromCouchdb

removeDomeinFileFromCouchdb :: Namespace -> MonadPerspectives Unit

Remove the file from couchb. Removes the model from cache.

#domeinRequest

Modules