ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.Cache.Backend

Description

Optional retention with bounded external operations and backend-owned codecs.

Synopsis

Documentation

data RetentionBackend k v Source #

Backend-owned storage, independent of request coalescing and admission.

data RetentionOperations k v Source #

Typed storage operations. Recency is advisory and occupancy reporting is optional. Adapters may report charged bytes and entry counts. These do not measure process or remote heap size.

Constructors

RetentionOperations 

Fields

data BackendStorage Source #

Local storage cannot retain full metadata, regardless of its capacity.

Constructors

LocalStorage 
ExternalStorage Int

External operation deadline, in microseconds, capped by the handle.

data Recency Source #

Whether a probe contributes to eviction recency.

Instances

Instances details
Show Recency Source # 
Instance details

Defined in Ecluse.Core.Server.Cache.Backend.Internal

Eq Recency Source # 
Instance details

Defined in Ecluse.Core.Server.Cache.Backend.Internal

Methods

(==) :: Recency -> Recency -> Bool #

(/=) :: Recency -> Recency -> Bool #

data CacheOccupancy Source #

Entry count and summed accounted bytes after a store mutation.

Constructors

CacheOccupancy 

Fields

retentionBackend :: BackendStorage -> RetentionOperations k v -> RetentionBackend k v Source #

Build storage independently of request coalescing. External deadlines cap at one second. Adapters own TTL, bounded decoding, identity validation, and storage representation.

supportsFullRetention :: BackendStorage -> Bool Source #

Only external storage is eligible to retain full metadata.