Class GlobalCacheTable<K extends Comparable<? super K>,R extends Row<K,?>>

java.lang.Object
com.aoapps.dao.base.AbstractTable<K,R>
com.aoapps.dao.base.GlobalCacheTable<K,R>
All Implemented Interfaces:
Table<K,R>, Iterable<R>, Collection<R>

public abstract class GlobalCacheTable<K extends Comparable<? super K>,R extends Row<K,?>> extends AbstractTable<K,R>
Caches results by querying the entire table upon first use, the cache is persistent and shared by all users.
  1. All rows are loaded and stored unsorted
  2. allRowsLoaded is called, given unsorted rows
  3. Map is built upon first call to get(K)
  4. Rows are sorted upon first call to getRows
TODO: Coordinate invalidation between nodes in cluster TODO: Coordinate invalidation between PHP and Java TODO: Once both done, more aggressively use global caches for better remote database performance TODO: Publish PHP version on PECL