Package org.conscrypt
Class FileClientSessionCache
java.lang.Object
org.conscrypt.FileClientSessionCache
public class FileClientSessionCache extends Object
File-based cache implementation. Only one process should access the
underlying directory at a time.
-
Field Summary
Fields Modifier and Type Field Description static intMAX_SIZE -
Method Summary
Modifier and Type Method Description static SSLClientSessionCacheusingDirectory(File directory)Returns a cache backed by the given directory.
-
Field Details
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
- Constant Field Values
-
-
Method Details
-
usingDirectory
Returns a cache backed by the given directory. Creates the directory (including parent directories) if necessary. This cache should have exclusive access to the given directory.- Parameters:
directory- to store files in- Returns:
- a cache backed by the given directory
- Throws:
IOException- if the file exists and is not a directory or if creating the directories fails
-