mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2024-10-01 11:48:15 +00:00
20 lines
404 B
Java
20 lines
404 B
Java
|
package dev.plex.cache;
|
||
|
|
||
|
import java.io.File;
|
||
|
import java.io.IOException;
|
||
|
import java.nio.file.Files;
|
||
|
|
||
|
public class CacheItem
|
||
|
{
|
||
|
public String path;
|
||
|
public byte[] file;
|
||
|
public long timestamp;
|
||
|
|
||
|
public CacheItem(File f) throws IOException
|
||
|
{
|
||
|
this.path = f.getPath();
|
||
|
this.file = Files.readAllBytes(f.toPath());
|
||
|
this.timestamp = System.currentTimeMillis();
|
||
|
}
|
||
|
}
|