effectful-data-cache: Data cache effect for the `effectful` system

[ bsd3, cache, library ] [ Propose Tags ] [ Report a vulnerability ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.1, 0.1.0.2, 0.2.0.1, 0.2.1.0, 0.2.2.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), cache (>=0.1.3 && <0.2), clock (>=0.8 && <0.9), effectful-core (>=2.3 && <3), hashable (>=1.5 && <2), stm (>=2.5 && <3), unordered-containers (>=0.2 && <0.3) [details]
License BSD-3-Clause
Copyright 2026 drlkf
Author drlkf
Maintainer drlkf <drlkf@drlkf.net>
Uploaded by drlkf at 2026-10-27T19:39:00Z
Category cache
Home page https://github.com/haskell-github-trust/effectful-data-cache#readme
Bug tracker https://github.com/haskell-github-trust/effectful-data-cache/issues
Source repo head: git clone https://github.com/haskell-github-trust/effectful-data-cache
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 26 total (19 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for effectful-data-cache-0.2.2.0

[back to package description]

effectful-data-cache

import Effectful
import Effectful.Cache
import Prelude hiding (lookup)

main :: IO ()
main = runEff . runCache Nothing $ do
  insert "key" (42 :: Int)
  v <- lookup @String @Int "key"
  liftIO $ print v

runCache creates a fresh store; runCacheWith wraps an existing Data.Cache.Cache so it can be shared with non-effectful code.

Tracing

See effectful-data-cache-opentelemetry for OpenTelemetry instrumentation.

memcached

See effectful-data-cache-memcache for a memcached backend.