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
IOException
public boolean isUpToDate(String key, WebJarExtractor.Cacheable cacheable)
WebJarExtractor.Cache
isUpToDate
in interface WebJarExtractor.Cache
key
- The key to check.cacheable
- The cacheable to check.public void put(String key, WebJarExtractor.Cacheable cacheable)
WebJarExtractor.Cache
put
in interface WebJarExtractor.Cache
key
- The key to put it at.cacheable
- The cacheable.public void save() throws IOException
IOException
public void reset() throws IOException
IOException
Copyright © 2019. All rights reserved.