ExpirableDiskLruCache alternatives and similar packages
Based on the "Utility" category.
Alternatively, view ExpirableDiskLruCache alternatives based on common mentions on social networks and blogs.
-
timber
A logger with a small, extensible API which provides utility on top of Android's normal Log class. -
StatusBarUtil
A util for setting status bar style on Android App. -
Byte Buddy
Runtime code generation for the Java virtual machine. -
wire
gRPC and protocol buffers for Android, Kotlin, and Java. -
tape
A lightning fast, transactional, file-based FIFO for Android and Java. -
OpenKeychain
OpenKeychain is an OpenPGP implementation for Android. -
tray
a SharedPreferences replacement for Android with multiprocess support -
joda-time-android
Joda-Time library with Android specialization -
AutobahnAndroid
WebSocket & WAMP in Java for Android and Java 8 -
easydeviceinfo
:iphone: [Android Library] Get device information in a super easy way. -
Android-Templates-And-Utilities
Collection of source codes, utilities, templates and snippets for Android development. -
secure-preferences
Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure. -
greenrobot-common
General purpose utilities and hash functions for Android and Java (aka java-common) -
Androl4b
A Virtual Machine For Assessing Android applications, Reverse Engineering and Malware Analysis -
vector-compat
A support library for VectorDrawable and AnimatedVectorDrawable classes introduced in Lollipop -
smoothie
Easy async loading for Android's ListView/GridView -
ColorArt
iTunes 11-style color matching code for Android -
CastCompanionLibrary-android
CastCompanionLibrary-android is a library project to enable developers integrate Cast capabilities into their applications faster and easier. -
android_dbinspector
Android library for viewing, editing and sharing in app databases. -
AndroidBillingLibrary
Android Market In-app Billing Library -
motion
An Android library allowing images to exhibit a parallax effect that reacts to the device's tilt -
Colours
A beautiful set of predefined colors and a set of color methods to make your Android development life easier. -
MrVector
[Deprecated] AKA VectorDrawableCompat: A 7+ backport of VectorDrawable -
EasyCamera
Wrapper around the android Camera class that simplifies its usage -
Reservoir
Android library to easily serialize and cache your objects to disk using key/value pairs. -
davdroid
DAVdroid – CalDAV/CardDAV synchronization for Android 4+ devices -
Android-Validator
Form Validator Library for Android -
android-validation-komensky
A simple library for validating user input in forms using annotations. -
dspec
A simple way to define and render UI specs on top of your Android UI. -
AndroidFaceCropper
Android bitmap Face Cropper -
routable-android
Routable, an in-app native URL router, for Android -
Treasure
Very easy to use wrapper library for Android SharePreferences -
DebugLog
Create a simple and more understandable Android logs. -
RoboGif
A small utility to record Android device screen to a GIF -
GhostLog
Android app that displays the logcat buffer in a system overlay window
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ExpirableDiskLruCache or a related project?
README
Disk LRU Cache
A cache that uses a bounded amount of space on a filesystem. Each cache entry
has a string key and a fixed number of values. Each key must match the regex
[a-z0-9_-]{1,120}
. Values are byte sequences, accessible as streams or files.
Each value must be between 0
and Integer.MAX_VALUE
bytes in length.
The cache stores its data in a directory on the filesystem. This directory must be exclusive to the cache; the cache may delete or overwrite files from its directory. It is an error for multiple processes to use the same cache directory at the same time.
This cache limits the number of bytes that it will store on the filesystem. When the number of stored bytes exceeds the limit, the cache will remove entries in the background until the limit is satisfied. The limit is not strict: the cache may temporarily exceed it while waiting for files to be deleted. The limit does not include filesystem overhead or the cache journal so space-sensitive applications should set a conservative limit.
Clients call edit
to create or update the values of an entry. An entry may
have only one editor at one time; if a value is not available to be edited then
edit
will return null.
- When an entry is being created it is necessary to supply a full set of values; the empty value should be used as a placeholder if necessary.
- When an entry is being edited, it is not necessary to supply data for every value; values default to their previous value.
Every edit
call must be matched by a call to Editor.commit
or
Editor.abort
. Committing is atomic: a read observes the full set of values as
they were before or after the commit, but never a mix of values.
Clients call get
to read a snapshot of an entry. The read will observe the
value at the time that get
was called. Updates and removals after the call do
not impact ongoing reads.
This class is tolerant of some I/O errors. If files are missing from the
filesystem, the corresponding entries will be dropped from the cache. If an
error occurs while writing a cache value, the edit will fail silently. Callers
should handle other problems by catching IOException
and responding
appropriately.
Note: This implementation specifically targets Android compatibility.
Download
Download the latest .jar or grab via Maven:
<dependency>
<groupId>com.jakewharton</groupId>
<artifactId>disklrucache</artifactId>
<version>2.0.2</version>
</dependency>
or Gradle:
compile 'com.jakewharton:disklrucache:2.0.2'
Snapshots of the development version are available in Sonatype's snapshots
repository.
If you would like to compile your own version, the library can be built by
running mvn clean verify
. The output JAR will be in the target/
directory.
(Note: this requires Maven be installed)
License
Copyright 2012 Jake Wharton
Copyright 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*Note that all licence references and agreements mentioned in the ExpirableDiskLruCache README section above
are relevant to that project's source code only.