List of usage examples for com.google.common.cache CacheBuilderSpec disableCaching
public static CacheBuilderSpec disableCaching()
From source file:com.rhythm.louie.cache.SingletonCache.java
@SuppressWarnings("unchecked") public static <V> SingletonCache<V> nonCaching(String name) { return new SingletonCache(name, CacheBuilder.from(CacheBuilderSpec.disableCaching())); }
From source file:com.rhythm.louie.cache.GuavaBasicCache.java
@SuppressWarnings("unchecked") public static <K, V> GuavaBasicCache<K, V> nonCaching(String name) { return new GuavaBasicCache(name, CacheBuilder.from(CacheBuilderSpec.disableCaching())); }
From source file:com.rhythm.louie.cache.GuavaLoadingCache.java
@SuppressWarnings("unchecked") public static <K, V> GuavaLoadingCache<K, V> nonCaching(String name, CacheLoader<K, V> loader) { return new GuavaLoadingCache(name, CacheBuilder.from(CacheBuilderSpec.disableCaching()), loader); }
From source file:org.opf_labs.fmts.fidget.service.FidgetService.java
private FidgetService() { super("fidget-service"); // By default a restart will be required to pick up any changes to assets. // Use the following spec to disable that behaviour, useful when developing. // TODO: Turn off caching CacheBuilderSpec cacheSpec = CacheBuilderSpec.disableCaching(); // CacheBuilderSpec cacheSpec = AssetsBundle.DEFAULT_CACHE_SPEC; addBundle(new AssetsBundle("/assets/", cacheSpec, "/")); addBundle(new ViewBundle()); // TODO: for H2 BD for authorisation //addBundle(new DBIExceptionsBundle()); }
From source file:com.mfizz.observer.server.ObserverServer.java
private ObserverServer() { super("observer-server"); // for enabling mustache and freemarker templates addBundle(new ViewBundle()); // for enabling static assets // By default a restart will be required to pick up any changes to assets. // Use the following spec to disable that behaviour, useful when developing. CacheBuilderSpec cacheSpec = CacheBuilderSpec.disableCaching(); //CacheBuilderSpec cacheSpec = AssetsBundle.DEFAULT_CACHE_SPEC; addBundle(new AssetsBundle("/assets/", cacheSpec)); }
From source file:org.grouplens.lenskit.data.sql.JDBCRatingDAO.java
/** * Create a new JDBC rating DAO. The resulting DAO will be uncached. * * @param dbc The database connection. * @param sfac The statement factory.//from w ww .j a v a 2 s .c o m * @param close Whether to close the database connection when the DAO is closed. * @deprecated Use {@link #newBuilder()}. */ @Deprecated public JDBCRatingDAO(Connection dbc, SQLStatementFactory sfac, boolean close) { this(dbc, sfac, close, CacheBuilder.from(CacheBuilderSpec.disableCaching()).<QueryKey, Object>build()); }