All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mageddo.commons.caching.Cache Maven / Gradle / Ivy

The newest version!
package com.mageddo.commons.caching;

import java.util.function.Function;

public interface Cache {

  boolean containsKey(String key);

   T get(String k);

   T get(String k, T def);

  /**
   * This operation must be used with lock in the implemented method.
   */
   T computeIfAbsent(String key, Function mappingFunction);

  void clear();

  boolean isEmpty();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy