couchbaselabs / Couchbase.Extensions

Extensions for Couchbase for .Net Core
Apache License 2.0
27 stars 14 forks source link

Rewrite Caching to properly implement IDistributedCache #116

Closed brantburnett closed 1 month ago

brantburnett commented 4 months ago

Motivation

The current implementation of IDistributedCache provided by Couchbase.Extensions.Caching doesn't properly follow the IDistributeCache contract, especially around sliding expirations. This can cause unexpected behaviors, especially if used in combination with other NuGet packages that expect the contract to be followed.

Modifications

Results

Breaking Changes

This is a breaking change that will require a SemVer major version bump. The API surface has both source and binary breaking changes, and the semantic behaviors are now different.