Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Alberto G. Corona <agocorona <at> gmail.com>
Subject: ANNOUNCE: Data.TCache 0.5.1
Newsgroups: gmane.comp.lang.haskell.cafe
Date: Tuesday 28th October 2008 22:26:10 UTC (over 8 years ago)
I uploaded TCache to hackage.org.

Data.Tcache is a transactional cache with configurable persistence. It
tries
to simulate Hibernate for Java or Rails for Ruby. The main difference is
that transactions are done in memory trough STM. There are transactional
cache implementations for some J2EE servers like JBOSS.

TCache uses STM . It can  atomically apply a function to a list of cached
objects. The resulting objects go back to the cache (withResources). It
also
can retrieve these objects (getResources).  Persistence can be syncronous
(syncCache)  or asyncronous, wtih configurable time between cache writes
and
configurable cache clearance strategy. the size of the cache can be
configured too . All of this can be done trough clearSyncCacheProc. Even
the
TVar variables can be accessed directly (getTVar) to acceess all the
semantic of atomic blocks while maintaining the persistence of the TVar
updates.

Persistence can be defined for each object.: Each object must have a
defined
key, a default filename path (if applicable). Persistence is pre-defined in
files, but the readResource writeResource and delResource methods can be
redefined to persist in databases or whatever.

There is a sample.hs that explain the main features.
 
CD: 3ms