TTL cache's has? doesn't check existence of value in the underlying cache

Description

(extracted from the comments thread of the CCACHE-15)

In case TTL cache is wrapped around other cache capable of evicting values based on some logic (e. g., LRU cache) TTL's has? would return true until TTL period of the given key is expired even if the underlying cache doesn't contain the value.

Environment

None

Assignee

Sean Corfield

Reporter

Ivan Kryvoruchko

Labels

None

Approval

None

Patch

Code and Test

Priority

Major
Configure