Example usage for com.google.common.cache Cache interface-usage

List of usage examples for com.google.common.cache Cache interface-usage

Introduction

In this page you can find the example usage for com.google.common.cache Cache interface-usage.

Usage

From source file com.rhythm.louie.cache.SingletonCache.java

/**
 *  Purpose of this cache is to act as a means to put lists and other non-map
 *  style caches into the cache framework.
 */
public class SingletonCache<V> implements Cache<Object, V> {
    private static final Integer KEY = 1;

From source file com.rhythm.louie.cache.GuavaCache.java

/**
 * I hate that this exists.
 * It is done specifically so that the manager can handle it, and also so that 
 * we can present an EMPTY cache if caching is disabled
 * @author eyasukoc
 */

From source file org.eclipse.kapua.commons.cache.LocalCache.java

/**
 * Default Kapua cache implementation
 * 
 * @param <K> keys type
 * @param <V> values type
 * 

From source file com.codefollower.lealone.omid.tso.GuavaCache.java

public class GuavaCache implements Cache, RemovalListener<Long, Long> {

    private com.google.common.cache.Cache<Long, Long> cache;
    private long removed;

    public GuavaCache(int size) {

From source file org.arbeitspferde.friesian.ConfigurableMapMakerCache.java

/**
 * Build an in-memory cache subject to {@link CacheBuilderSpec} definitions.
 *
 * @param <T> The type of objects that this cache can hold.
 */
public class ConfigurableMapMakerCache<T> implements Cache<T> {

From source file io.gromit.uaparser.cache.GuavaCache.java

/**
 * The Class GuavaCache.
 */
public class GuavaCache implements Cache {

    /** The Constant DEFAULT_CAPACITY. */

From source file com.geemvc.cache.DefaultCache.java

@Singleton
public class DefaultCache implements Cache {
    protected static final Map<Object, com.google.common.cache.Cache> caches = new ConcurrentHashMap<>();

    protected static final String DEFAULT_CACHE_NAME = "__DEFAULT_CACHE";

From source file com.streamsets.datacollector.metrics.MetricsCache.java

public class MetricsCache<K, V> implements Cache<K, V> {

    public final Cache<K, V> delegate;

    static String KEY_COUNT = "count";
    private final Map<String, Object> gaugeMap;

From source file com.noasking.page.cache.GuavaCache.java

/**
 * ?Guava?? com.noasking.page.cache.Cache ?
 *
 */
public class GuavaCache implements Cache<String, String> {
    //Guava

From source file org.polymap.core.runtime.cache.GuavaCache.java

/**
 * Experimental cache implementation backed by Guava's cache implementation
 * {@link CacheBuilder}.
 * 
 * @author <a href="http://www.polymap.de">Falko Brutigam</a>
 */