core.cache

Composition of TTLCache can lead to inconsistent cache lookups

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    Any platform. Clojure v1.8; core.cache v0.6.5
  • Patch:
    Code and Test

Description

If a TTL cache composes another cache, the presence of a key has to be checked both against the TTL list and the composed cache. Otherwise, the TTL cache could say that an item is still present (because the TTL has not yet expired), but the item is removed from the composed cache. In such a case, a user will get a true from has? but a nil from lookup (because the key is no longer present in the composed cache).

Activity

Hide
Ivan Kryvoruchko added a comment - - edited

I think it's the same issue (and even fix is literally the same ) https://dev.clojure.org/jira/browse/CCACHE-46

Show
Ivan Kryvoruchko added a comment - - edited I think it's the same issue (and even fix is literally the same ) https://dev.clojure.org/jira/browse/CCACHE-46
Hide
Joris Gillis added a comment -

Indeed. Sorry, missed that ticket.

Show
Joris Gillis added a comment - Indeed. Sorry, missed that ticket.
Hide
Sean Corfield added a comment -

CCACHE-46 has been fixed for the next release.

Show
Sean Corfield added a comment - CCACHE-46 has been fixed for the next release.
Hide
Sean Corfield added a comment -

Release 0.7.0

Show
Sean Corfield added a comment - Release 0.7.0

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: