Repository navigation
Tags
Tags
go/cache v0.4.1 cachetest holds Modes, Pitfalls and Simulation to the Notifier contract rather than to Memory's behaviour (#20). Those three had only ever run against Memory, so they assumed a notifier that never reports its own client's writes and reports them synchronously. The contract allows both, and a layer that does them — Redis server-assisted client tracking — had the copy a fill just stored above evicted by its own echo a moment later, failing three cases on every server. Found by the first driver to run the whole suite (codefly-dev/service-redis#106). No API change: cachetest only, and the library's own behaviour is untouched. A consumer that does not run the conformance suite sees no difference from v0.4.0.
go/cache v0.4.0 An origin can bound a value and decline to have it cached, and a stack can report what it did. - Entry.Expires: the origin's own bound on a value. It narrows a tier's TTL, never extends it, travels with the copy, and no mode serves a copy at or past it without revalidating (#18). - Entry.NoStore: a value the origin vouches for this once only — served to the caller, stored in no layer, any fill lease given back. For a value that is correct to serve and wrong to keep, where failing the read was the alternative (#18). - WithObserver: per-tier Events — which tier answered, a lease waited on, an origin loaded, a tier skipped behind its breaker, and cold told from down — with WithObserverErrors for an observer that panics, which is contained rather than allowed to fail the read (#19). Additive: both fields and both options are new, so a stack that sets none behaves as it did at v0.3.0. The interface version (interface.codefly.yaml) is unchanged at 0.3.0; this is a library tag.
object-storage cache source v0.2.0 (go/cache v0.2.0)
go/cache v0.2.1: cachetest ResyncFlushesMemory waits for pending noti… …ces (async echoes)
codefly.dev/cache go/cache v0.2.0: identity partitions, generations, … …notifier contract
PreviousNext