| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Server.Cache.Backend.Local
Description
Local TTL retention with shared bounds and per-store recency eviction.
Synopsis
- newPooledRetention :: Hashable k => LocalPool -> NominalDiffTime -> StoreBudget -> (v -> Int) -> IO (RetentionOperations k v)
- data LocalPool
- newLocalPool :: Int -> Int -> IO LocalPool
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.
The pool owns one aggregate counter. Registered actions hold no duplicate entry index.