Assume I want to cache the results of expensive method calls. These cache entries should have a different expiry duration (aka TTL). Is this possible with JCache if the entries are put into the same Cache instance?
I am aware that I can assign a different ExpiryPolicy to each cache. However I wonder if it's possible to assign a expiry duration individually to a CacheEntry.
Does JCache support this? If so I'd appreciate a link to a code example for this. The scope of this question is purely JCache without any implementation specific features.