The TCache package

[Tags:bsd3, library]

This version correct an error in the version 0.5.3. since 0.5 nothing in the code has changed except that the && <4 in the build dependencies added in the 0.5.3 the behaviour of getClocktime to be lazy, that indeed makes the cache write algoritm not to work, with the result tha no file is written. This version force the strict evaluation and correct this error. 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.


Versions 0.5, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.6.4, 0.6.5, 0.8.0,,, 0.9,,,,,,,,,,,,,,,,,,,,,,,, 0.12.0, 0.12.1
Dependencies base (==3.*), directory (>=1.0), old-time (>=1.0) [details]
License BSD3
Author Alberto Gómez Corona
Category Middleware
Uploaded Sun Nov 9 18:45:47 UTC 2008 by AlbertoCorona
Distributions LTSHaskell:0.12.1, NixOS:0.12.1, Stackage:0.12.1, Tumbleweed:0.12.1
Downloads 11034 total (68 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees