/** * Constructs a storage backend using the provided Ehcache * with default configuration options. * @param cache where to store cached origin responses */ public EhcacheHttpCacheStorage(final Ehcache cache) { this(cache, CacheConfig.DEFAULT, new DefaultHttpCacheEntrySerializer()); }
/** * Constructs a storage backend using the provided Ehcache * with the given configuration options. * @param cache where to store cached origin responses * @param config cache storage configuration options - note that * the setting for max object size <b>will be ignored</b> and * should be configured in the Ehcache instead. */ public EhcacheHttpCacheStorage(Ehcache cache, CacheConfig config){ this(cache, config, new DefaultHttpCacheEntrySerializer()); }
/** * Constructs a storage backend using the provided Ehcache * with the given configuration options. * @param cache where to store cached origin responses * @param config cache storage configuration options - note that * the setting for max object size <b>will be ignored</b> and * should be configured in the Ehcache instead. */ public EhcacheHttpCacheStorage(final Ehcache cache, final CacheConfig config){ this(cache, config, new DefaultHttpCacheEntrySerializer()); }
private MapHttpCacheStorage(ConcurrentMap<String, byte[]> cache) { this.cache = cache; this.serializer = new DefaultHttpCacheEntrySerializer(); }
private MapHttpCacheStorage(ConcurrentMap<String, byte[]> cache) { this.cache = cache; this.serializer = new DefaultHttpCacheEntrySerializer(); }
/** * Constructs a storage backend using the provided Ehcache * with default configuration options. * @param cache where to store cached origin responses */ public EhcacheHttpCacheStorage(Ehcache cache) { this(cache, new CacheConfig(), new DefaultHttpCacheEntrySerializer()); }