couchbaselabs / Couchbase.Extensions

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

Updated Absolute Property Logic And Adjusted Timespans (45) #46

Closed mmmasent closed 6 years ago

mmmasent commented 6 years ago

Motivation

Prior, there was an issue where documents cached using the absolute properties were seemingly instantly deleted from the bucket

Modifications

Adjusted GetLifeTime logic for the Absolute properties to return timespans relative to utc time:

Result

Documents saved via the cache when using the absolute properties should no longer be instantly deleted

AppVeyorBot commented 6 years ago

:white_check_mark: Build Couchbase.Extensions 103 completed (commit https://github.com/couchbaselabs/Couchbase.Extensions/commit/0679a9da2f by @mmmasent)

jeffrymorris commented 6 years ago

Hi @mmmasent -

Looks good! Thanks for the submission!

-Jeff

jeffrymorris commented 6 years ago

@mmmasent -

Was doing some branch cleanup and it looks like I fixed(?) this same issue sometime back and never did the PR :(

I took yours over this and will merge this on top (possibly) since it adds some additional changes.

-Jeff