Closed Yonkers closed 4 years ago
Yes, it would be great if we could somehow know if caching works at all the way it should without plugin hacking. The DioCacheManager needs some getter method or the Response object should have some extra info to check if the data is coming from cache.
Hi, thanks for your issue;
Support database path custom config.
set databasePath in CacheConfig.
Add flag in Response headers to distinguish whether the data is coming from the cache.
// How to know if the data come from Cache
if (null != response.headers.value(DIO_CACHE_HEADER_KEY_DATA_SOURCE)) {
// data come from cache
} else {
// data come from net
}
hope to add custom store and data view interface