A write-through memcache for Entity objects that works for both transactional and nontransactional sessions.
Note: Until Google adds a hook that lets us wrap native Future> implementations, you muse install the {@code AsyncCacheFilter} to use this cache asynchronously. Thisis not necessary for synchronous use of {@code CachingDatastoreService}, but asynchronous operation requires an extra hook for the end of a request when fired-and-forgotten put()s and delete()s get processed. If you use this cache asynchronously, and you do not use the {@code AsyncCacheFilter}, your cache will go out of sync.
@author Jeff Schnitzer
|
|
|
|