in v2, remove LocalCache from get and getSytemMetadata calls
From discussion in maintenance standup today (Nov 10, 2014):
In the V1 architecture, LocalCache implementation for data objects and metadata objects worked well because because objects were immutable. However, in v2, we can't make that assumption for consumers, because the identifier passed in could be a series ID. There is not an external requirement to implement caching, and how it might be done in the context of both large and small objects seems to go beyond what could be handled through JCS configuration. Consensus was that context caching was an application consideration and that transparent caching could lead to inefficiencies such as double-caching, or unexpectedly and silently getting stale content.
The consensus is to remove it from get and getSysmeta, and redesign so that such the local cache is tied to the session.
#5 Updated by Rob Nahf over 6 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
decided to remove LocalCache/JCS entirely from d1_libclient_java since it is not being used for v2 APIs, is turned off by default on v1 APIs, libclient_java uses CachableHttpClient by default, and there are maven dependency issues with JCS (the implementation behind LocalCache.)