public static synchronized SSLClientSessionCache | usingDirectory(java.io.File directory)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.
FileClientSessionCache.Impl cache = caches.get(directory);
if (cache == null) {
cache = new FileClientSessionCache.Impl(directory);
caches.put(directory, cache);
}
return cache;
|