cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cayenne] johnthuss opened a new pull request #292: QueryCache improvements for local caching
Date Tue, 09 Jul 2019 14:54:28 GMT
johnthuss opened a new pull request #292: QueryCache improvements for local caching
URL: https://github.com/apache/cayenne/pull/292
 
 
   Added getQueryCache to the ObjectContext interface since this is already implemented by
BaseContext anyway and makes accessing the cache much easier.
   
   Revised signature for QueryCache.remove(String) to be remove(QueryMetadata) to increase
understandability. It was never clear how to use this method before.
   
   Added QueryCache.clearLocalCache method. This is now called automatically at the end of
the request-response loop in StatelessContextRequestHandler and by BaseContext.finalize. This
will prevent memory leaking from locally cached data in cases where the cache is not configured
to expire entries based on time.
   
   Added QueryCache.debugListCacheKeys method to list all keys (prefixed by cache group) in
the cache for debugging purposes.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message