couchbaselabs / couchbaselabs/couchbase-spring-cache

Evict fails on keys that are not actually present in cache

Open
#11 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
15
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Evict internally calls the SDK's `remove` method, which will throw a `DocumentDoesNotExist` if the id is not stored in database.

This can be problematic in certain cases where the `@CacheEvict` annotated method is supposed to create the initial value or triggers eviction of a non-cached value. It could also come up when cached values are naturally removed from Couchbase through TTL, and a later evict call is triggered when updating the canonical value.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.