This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This class allows to inject into objects through a base class, | |
* so we don't have to repeat injection code everywhere. | |
* | |
* The performance drawback is about 0.013 ms per injection on a very slow device, | |
* which is negligible in most cases. | |
* | |
* Example: | |
* <pre>{@code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringDiskLruCache { | |
private static final int EXPIRATION = 1000 * 60 * 60 * 24; | |
private static final int DATA_INDEX = 0; | |
private static final int EXPIRATION_INDEX = 1; | |
private static final int INDEXES_COUNT = 2; | |
private Context context; | |
private DiskLruCache cache; |