From cac6139839c37f052a78e788e9baa1fa9437c0a9 Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Tue, 5 Mar 2019 11:43:41 +0000 Subject: [PATCH] Update changelog re caching API surface --- CHANGELOG.md | 7 +++++-- src/Equinox.EventStore/EventStore.fs | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9e71ad04..35e2a7750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,8 @@ The repo is versioned based on [SemVer 2.0](https://semver.org/spec/v2.0.0.html) using the tiny-but-mighty [MinVer](https://github.com/adamralph/minver) from [@adamralph](https://github.com/adamralph). [See here](https://github.com/adamralph/minver#how-it-works) for more information on how it works. -All notable changes to this project will be documented in this file. +All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). The `Unreleased` section name is replaced by the expected version of next release. A stable version's log contains all changes between that version and the previous stable version (can duplicate the prereleases logs). _NB at the present time, this project does not adhere strictly to Semantic Versioning - small binary-breaking changes may occur without a change in Major at the until this notice is removed (it will be!)._ @@ -13,6 +12,10 @@ _NB at the present time, this project does not adhere strictly to Semantic Versi ### Added ### Changed + +- Make `caching` non-optional in CosmosStreamResolver; add `NoCaching` cache mode for `Equinox.Cosmos` [#104](https://github.com/jet/equinox/issues/104) @jakzale +- Reorder `caching` and `access` in `GesStreamResolver` to match `CosmosStreamResolver` [#107](https://github.com/jet/equinox/issues/107) + ### Removed ### Fixed diff --git a/src/Equinox.EventStore/EventStore.fs b/src/Equinox.EventStore/EventStore.fs index abceb942c..a44fbd26b 100644 --- a/src/Equinox.EventStore/EventStore.fs +++ b/src/Equinox.EventStore/EventStore.fs @@ -429,7 +429,6 @@ type private Folder<'event, 'state>(category : Category<'event, 'state>, fold: ' | Some (cache : Caching.Cache, prefix : string) -> match cache.TryGet(prefix + streamName) with | None -> batched - | Some (token, state) -> cached token state interface ICategory<'event, 'state, string> with member __.Load (streamName : string) (log : ILogger) : Async = loadAlgorithm streamName initial log