Share astrientfoundation - Thursday September 3, 2009 18:36 UTC - http://hostj2me.com/a/7vn
report this application
This JAR file contains the caching code used in HostJ2ME.com and CliqCafe. There are several variations of caching and each variation is employed in HostJ2ME.com to increase efficiency.
For example, all file download requests pass through a GdsCache which caches the bytes of files on disk in memory for quick access.
GdsCache cache = ...
GdsCacheObject object = cache.getGdsCacheObject(path);
if (object == null)
object = new GdsCacheObject(path);
Caching is also used extensively when retrieving records from the HostJ2ME.com database.
List<Record> records = (List<Record>)cache.get(key);
if ( records == null )
//get from database
|Total Accounts: 100,539|
|Total Applications: 6,490|
|Total Files: 218,719|
|Total Downloads: 6,563,012|
|Total Stored: 15.69GB|