net.csdn.modules.cache
Class AppCache

java.lang.Object
  extended by net.csdn.modules.cache.AppCache

public class AppCache
extends Object

4/13/13 WilliamZhu(allwefantasy@gmail.com)


Constructor Summary
AppCache(net.csdn.common.settings.Settings settings)
           
 
Method Summary
<K,V> AppCache
buildCache(String name, com.google.common.cache.CacheLoader<K,V> cacheLoader, int timeByMINUTES)
           
 com.google.common.cache.LoadingCache cache(String name)
           
<T> T
fetch(String name, Callable<T> callable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppCache

@Inject
public AppCache(net.csdn.common.settings.Settings settings)
Method Detail

fetch

public <T> T fetch(String name,
                   Callable<T> callable)

buildCache

public <K,V> AppCache buildCache(String name,
                                 com.google.common.cache.CacheLoader<K,V> cacheLoader,
                                 int timeByMINUTES)

cache

public com.google.common.cache.LoadingCache cache(String name)


Copyright © 2014. All Rights Reserved.