ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.Cache.Backend.Local

Description

Local TTL retention with shared bounds and per-store recency eviction.

Synopsis

Documentation

newPooledRetention :: Hashable k => LocalPool -> NominalDiffTime -> StoreBudget -> (v -> Int) -> IO (RetentionOperations k v) Source #

Share aggregate capacity, evicting only this store's entries above its floor.

data LocalPool Source #

The pool owns one aggregate counter. Registered actions hold no duplicate entry index.

newLocalPool :: Int -> Int -> IO LocalPool Source #

Build one aggregate bound for all registered local stores.