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

org.greencheek.caching.herdcache.CacheWithExpiry Maven / Gradle / Ivy

Go to download

A cache that uses futures to prevent thundering herds to your backend service

There is a newer version: 2.0.19
Show newest version
package org.greencheek.caching.herdcache;

import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;

import java.time.Duration;
import java.util.function.Supplier;

/**
 * Created by dominictootell on 23/08/2014.
 */
public interface CacheWithExpiry extends Cache {
    public ListenableFuture apply(String key, Supplier computation, Duration timeToLive, ListeningExecutorService executorService);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy