code: public static <K,V> Cache<K,V> newHardMemoryCache(int size) {
          return new MemoryCache<>(false, size);
      }
docs: Return a new memory cache with the specified maximum size, unlimited
  lifetime for entries, with the values held by standard references.