I think this should probably change to:
```
InternalCache cache = toInternalCacheForClientAccess(context.getCache());
```
Then you could replace ManagementAgent.getCache() with:
```
public static InternalCacheForClientAccess toInternalCacheForClientAccess(Cache
cache) {
return ((InternalCache)cache).getCacheForProcessingClientRequests();
}
```
Or if you think FunctionContext.getCache() should always return
InternalCacheForClientAccess, you could move that code into FunctionContext.
[ Full content available at: https://github.com/apache/geode/pull/2866 ]
This message was relayed via gitbox.apache.org for
[email protected]