mark-christiaens/xtext — Issue #34: Move decision to cache into cache code
Author: mark-christiaens
Created: 2012-01-30 16:25:13+00:00
State: open

Currently, the cache code decides in the LazyLinkingResource#shouldAttemptCacheLoad whether or not to try to cache stuff. It would make more sense to have that functionality inside the cache implementation itself. That way, if we use for example an AlwaysMissCache, then this cache could immediately block caching attempts (instead of paying the price of calculating the digest of the input stream and then get a miss in return).