Package com.google.common.cache

Examples of com.google.common.cache.Cache


    @Override
    public ConcurrentMap getCacheByName(String cacheName) {
        synchronized (caches) {
            if(!caches.containsKey(cacheName)) {
                Cache c = CacheBuilder.newBuilder()
                        .expireAfterAccess(configurationService.getIntConfiguration(CoreOptions.CACHING_EXPIRATION,30), TimeUnit.MINUTES)
                        .maximumSize(configurationService.getLongConfiguration(CoreOptions.CACHING_MAXIMUM_SIZE,10000L))
                        .build();
                caches.put(cacheName,c);
            }
View Full Code Here

TOP

Related Classes of com.google.common.cache.Cache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.