DirectMemory is an off-heap cache implementation (a la BigMemory) to enable in-memory serialization of a large number of Java objects without affecting JVM garbage collection performance. Although serialization makes things slower, put/get operations are well in the sub-millisecond range, which is pretty acceptable in every usage scenario. DirectMemory implements cache eviction based on a simple LRU (Less Recently Used) algorithm and on item expiration.