Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMaybe Cache Manager can be more flexible? #5
Comments
|
I already have been thinking about the possibility of multiple cache managers. Using a custom key for that is indeed a good idea. Keeping the filename is indeed also not a bad idea. |
|
This would definitely help with #20 ! |
|
Flexible could be applied also to being able to flush the cache programatically. When the user logs out of the application leaving dangling cache files with user photos or more is a privacy concern. I see theres a |
|
|

Hi Rene,
Information about the files is stored in the shared preferences with the key "lib_cached_image_data". (Because images was the first use of this library :)) The date when the cache is last cleaned is stored as "lib_cached_image_data_last_clean".You can actually pass this preferences in a Cache constructor (or in a
getInstance()method) and your network image library will pass these keys (ib_cached_image_data).Second point - it will probably be good to be able to have multiple cache managers. For example I will need to cache both document and data - and not sure if I will have same clean/keep configurations for both...