cache-0.1.3.0: An in-memory key/value store with expiration support

Copyright(c) 2018 Henri Verroken
LicenseBSD3
MaintainerHenri Verroken <henriverroken@gmail.com>
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

Data.Cache.Internal

Contents

Description

This modules exposes some of the internals of Cache as well as some auxiliary functions for expert users.

Synopsis

Cache constructor

data Cache k v Source #

The cache with keys of type k and values of type v.

Create caches with the newCache and copyCache functions.

Constructors

Cache 

Fields

data CacheItem v Source #

A container data type holding a cache item.

Constructors

CacheItem 

Unsafe auxiliary functions

nowSTM :: STM TimeSpec Source #

Get the current time in the STM monad using unsafeIOToSTM.