HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulevortex-combinators-0.1.1.0GHC2024

Vortex.Combinators.Cache

A cache in front of an interpreter, usually a forwarder. Reads are served from the cache while their entry is fresh; writes go upstream and drop every entry that depends on a key they declare. Freshness is counted in ticks of a logical clock: an entry fetched at tick t under staleness n is served while the clock is below t + n, so with staleness 1 no read is older than the last tick.

  • 4 types
  • 6 values

Ticks

5 declarations
newtypenewtype Tick
#

A reading of the logical clock.

Constructors

Instances4Eq, Ord, Read, Show
  • Eq TickDefined in vortex-combinators-0.1.1.0 · Vortex.Combinators.Cache
  • Ord TickDefined in vortex-combinators-0.1.1.0 · Vortex.Combinators.Cache
  • Read TickDefined in vortex-combinators-0.1.1.0 · Vortex.Combinators.Cache
  • Show TickDefined in vortex-combinators-0.1.1.0 · Vortex.Combinators.Cache

The cache

5 declarations
newtypenewtype Staleness
#

How many ticks an entry is served for. 0 never serves from the cache.

Instances3Eq, Ord, Show
  • Eq StalenessDefined in vortex-combinators-0.1.1.0 · Vortex.Combinators.Cache
  • Ord StalenessDefined in vortex-combinators-0.1.1.0 · Vortex.Combinators.Cache
  • Show StalenessDefined in vortex-combinators-0.1.1.0 · Vortex.Combinators.Cache
newtypenewtype Cache k
#

Read results in wire form, by call, with the keys they depend on.