public TTLCache()

in sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/internal/TTLCache.java [43:53]


  public TTLCache(final int maxSize, final long ttlInMillis, final EntryLoader<T> loader) {
    if (maxSize < 1) {
      throw new IllegalArgumentException("maxSize " + maxSize + " must be at least 1");
    }
    if (ttlInMillis < 1) {
      throw new IllegalArgumentException("ttlInMillis " + maxSize + " must be at least 1");
    }
    this.ttlInNanos = TimeUnit.MILLISECONDS.toNanos(ttlInMillis);
    this.cache = new LRUCache<>(maxSize);
    this.defaultLoader = checkNotNull(loader, "loader must not be null");
  }