public class PersistentCache extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
byteArrayToHex(byte[] bytes) |
void |
clean()
Deletes cache entries that are no longer valid according to the default expiration time period.
|
void |
clear()
Deletes all cache entries
|
byte[] |
get(String obj) |
Path |
getDirectory() |
InputStream |
getStream(String obj) |
String |
getString(String obj) |
void |
put(String obj,
byte[] value) |
void |
put(String obj,
InputStream stream) |
void |
reconfigure() |
public void reconfigure()
public Path getDirectory()
@CheckForNull public String getString(@Nonnull String obj) throws IOException
IOException@CheckForNull public InputStream getStream(@Nonnull String obj) throws IOException
IOException@CheckForNull public byte[] get(@Nonnull String obj) throws IOException
IOExceptionpublic void put(@Nonnull String obj, @Nonnull InputStream stream) throws IOException
IOExceptionpublic void put(@Nonnull String obj, @Nonnull byte[] value) throws IOException
IOExceptionpublic void clear()
public void clean()
public static String byteArrayToHex(byte[] bytes)
Copyright © 2011-2016 SonarSource. All Rights Reserved.