couchbaselabs / Couchbase.Extensions

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

Handle DocumentNotFoundException #94

Closed brantburnett closed 3 years ago

brantburnett commented 3 years ago

Motivation

DocumentNotFoundException is not always being consistently handled per the IDistributedCache expected behaviors.

Modifications

Return null for all cases of Get where the document is not found, and updated nullable ref attributes to reflect the possibility.

Ignore missing documents on all cases of Remove.

Add related tests.

Results

Behaviors are now consistent with expectations for IDistributedCache.

Fixes #90