Disk Store Zip Writer
class DiskStoreZipWriter(out: ZipOutputStream, prefix: String = "cache/", level: Int = Deflater.BEST_COMPRESSION, timestamp: Instant = Instant.EPOCH, alloc: ByteBufAllocator = ByteBufAllocator.DEFAULT, legacy: Boolean = false) : Store
A specialised Store implementation that writes a cache in the native main_file_cache.dat2
/main_file_cache.idx*
format to a ZipOutputStream.
The cache is not buffered to disk, though the index entries must be buffered in memory. The memory usage is therefore proportional to the number of groups, but crucially, not the size of the data file.
This implementation only supports the create and write methods. All other methods throw UnsupportedOperationException.
It is only intended for use by the cache archiving service's web interface.
Constructors
Link copied to clipboard
constructor(out: ZipOutputStream, prefix: String = "cache/", level: Int = Deflater.BEST_COMPRESSION, timestamp: Instant = Instant.EPOCH, alloc: ByteBufAllocator = ByteBufAllocator.DEFAULT, legacy: Boolean = false)