Package jetbrains.buildServer.artifacts
Interface FileCache
-
- All Superinterfaces:
LocalCache
- All Known Implementing Classes:
HttpCacheImpl
public interface FileCache extends LocalCache
Author: Nikita.Skvortsov Date: 1/18/11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description File
getFile(String key)
Get cached file.boolean
isValid(String key)
Check if file under given key, is valid.-
Methods inherited from interface jetbrains.buildServer.artifacts.LocalCache
cleanUpCache, cleanUpCache, cleanUpCache, delete, getCachedFile, getCacheOptions, listCache, putFile, putFile, putFiles
-
-
-
-
Method Detail
-
isValid
boolean isValid(String key)
Check if file under given key, is valid.- Parameters:
key
- key to check- Returns:
- true - if file exists and is valid. False otherwise.
-
getFile
@NotNull File getFile(@NotNull String key) throws IOException
Get cached file. Ensures file is in cache directory and is valid. Updates file, if necessary.- Parameters:
key
- key for file.- Returns:
- file in cache directory
- Throws:
IOException
- if error occures.
-
-