/** * Put an entry in the cache. * @param key The key. * @param value The value. * @param now The current time (-1 for never expire). */ public void put(Object key, Object value, long now, long ttl) { CacheEntry ce = new CacheEntry(value, now, ttl); lru.put(key, ce); }