Skip navigation links
B C D E G I N P R S U V 

B

build() - Method in class com.vincentbrison.openlibraries.android.dualcache.Builder
Builder the cache.
Builder<T> - Class in com.vincentbrison.openlibraries.android.dualcache
Class used to build a cache.
Builder(String, int) - Constructor for class com.vincentbrison.openlibraries.android.dualcache.Builder
Start the building of the cache.

C

com.vincentbrison.openlibraries.android.dualcache - package com.vincentbrison.openlibraries.android.dualcache
 
contains(String) - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Test if an object is present in cache.

D

delete(String) - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Delete the corresponding object in cache.
DualCache<T> - Class in com.vincentbrison.openlibraries.android.dualcache
This class intent to provide a very easy to use, reliable, highly configurable caching library for Android.
DualCacheDiskMode - Enum in com.vincentbrison.openlibraries.android.dualcache
Define the behaviour of the disk layer.
DualCacheRamMode - Enum in com.vincentbrison.openlibraries.android.dualcache
Define the behaviour of the RAM layer.

E

enableLog() - Method in class com.vincentbrison.openlibraries.android.dualcache.Builder
Enabling log from the cache.

G

get(String) - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Return the object of the corresponding key from the cache.
getDiskMode() - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Return the way objects are cached in disk layer.
getDiskUsedInBytes() - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
 
getRAMMode() - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Return the way objects are cached in RAM layer.
getRamUsedInBytes() - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
 

I

invalidate() - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Remove all objects from cache (both RAM and disk).
invalidateDisk() - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Remove all objects from Disk.
invalidateRAM() - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Remove all objects from RAM.

N

noDisk() - Method in class com.vincentbrison.openlibraries.android.dualcache.Builder
Use this if you do not want use the disk cache layer, meaning that only the ram cache layer will be used.
noRam() - Method in class com.vincentbrison.openlibraries.android.dualcache.Builder
The ram cache will not be used, meaning that only the disk cache will be used.

P

put(String, T) - Method in class com.vincentbrison.openlibraries.android.dualcache.DualCache
Put an object in cache.

R

ReferenceLruCache<T> - Class in com.vincentbrison.openlibraries.android.dualcache
This is the LRU cache used for the RAM layer when configured to used references.
ReferenceLruCache(int, SizeOf<T>) - Constructor for class com.vincentbrison.openlibraries.android.dualcache.ReferenceLruCache
 

S

sizeOf(String, T) - Method in class com.vincentbrison.openlibraries.android.dualcache.ReferenceLruCache
 
SizeOf<T> - Interface in com.vincentbrison.openlibraries.android.dualcache
Interface used to describe how to compute the size of an object in RAM.
sizeOf(T) - Method in interface com.vincentbrison.openlibraries.android.dualcache.SizeOf
Compute the amount of RAM in bytes used by this object.

U

useReferenceInRam(int, SizeOf<T>) - Method in class com.vincentbrison.openlibraries.android.dualcache.Builder
Store directly objects in ram (without serialization/deserialization).
useSerializerInDisk(int, boolean, <any>, Context) - Method in class com.vincentbrison.openlibraries.android.dualcache.Builder
Use custom serialization/deserialization to store and retrieve objects from disk cache.
useSerializerInDisk(int, File, <any>) - Method in class com.vincentbrison.openlibraries.android.dualcache.Builder
Use custom serialization/deserialization to store and retrieve object from disk cache.
useSerializerInRam(int, <any>) - Method in class com.vincentbrison.openlibraries.android.dualcache.Builder
Use Json serialization/deserialization to store and retrieve object from ram cache.

V

valueOf(String) - Static method in enum com.vincentbrison.openlibraries.android.dualcache.DualCacheDiskMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.vincentbrison.openlibraries.android.dualcache.DualCacheRamMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.vincentbrison.openlibraries.android.dualcache.DualCacheDiskMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.vincentbrison.openlibraries.android.dualcache.DualCacheRamMode
Returns an array containing the constants of this enum type, in the order they are declared.
B C D E G I N P R S U V 
Skip navigation links