lazy-cache-0.2.0.0: Library for caching IO action that leverages on GHC RTS implementation
Safe HaskellNone
LanguageHaskell2010

System.Cache.Internal.Interface

Description

Internal interface for the Cache handle. In general you are not interested in this module and should use public API from the System.Cache instead, unless:

  1. you need to implement your own handle,
  2. you need to use internal functions like remove,
  3. you need to provide your own getClockTime implementation
Synopsis

Documentation

data Handle a b Source #

The public interface for the cache values storage.

A storage is expected to provide the following properties:

  1. If the function return succesfully then the result should be cached for a time period, All later calls should return the cached value.
  2. In case of the concurrent actions an implementation should be the best effort to avoid reduntant calls

Constructors

Handle 

Fields

data Config Source #

Configuration for Cache

See System.Cache.Internal.Interface for all details on the fields.

Constructors

Config 

Fields