org.webjars
public class FileSystemCache extends Object implements WebJarExtractor.Cache
| Constructor and Description |
|---|
FileSystemCache(File cache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUpToDate(String key,
WebJarExtractor.Cacheable cacheable)
Whether the file is up to date.
|
void |
put(String key,
WebJarExtractor.Cacheable cacheable)
Put the given file in the cache.
|
void |
reset() |
void |
save() |
public FileSystemCache(File cache) throws IOException
IOExceptionpublic boolean isUpToDate(String key, WebJarExtractor.Cacheable cacheable)
WebJarExtractor.CacheisUpToDate in interface WebJarExtractor.Cachekey - The key to check.cacheable - The cacheable to check.public void put(String key, WebJarExtractor.Cacheable cacheable)
WebJarExtractor.Cacheput in interface WebJarExtractor.Cachekey - The key to put it at.cacheable - The cacheable.public void save()
throws IOException
IOExceptionpublic void reset()
throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.