| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
SDL.Data.Cache
Description
This module provides a simple caching implementation based on the LRU caching strategy. The cache is implemented via software transactional memory, which means that you can use the cache from different threads.
Documentation
class Cacheable r where Source
Something is cacheable if there is an action to release the resource (if necessary).
Methods
releaseResource :: r -> IO () Source
Create a new cache instance.