P E N C I L
Login
Guava
  1. Cache
    1. cache = CacheBuilder.newBuilder().recordStats().expireAfterWrite(1, TimeUnit.DAYS).build(cacheLoader);
    2. cache = CacheBuilder.from(specs)
    3. By default, the stats is n
    4. NOTE: time is System.nanoTime() which is independent from wall clock time (ie. you cannot make the cache expired by changing the date of system)
  2. ImmutableMap.builder().put()
  3. Optional.fromNullable