public class CacheBackendDaoPostgres extends Object implements CacheBackendDao
| Constructor and Description |
|---|
CacheBackendDaoPostgres() |
CacheBackendDaoPostgres(long timeToLive) |
| Modifier and Type | Method and Description |
|---|---|
String |
createHashRoot(String service,
String queryString) |
CacheEntryImpl |
lookup(Connection conn,
String service,
String queryString,
boolean closeConn)
The lookup returns an InputStream + metadata
|
void |
write(Connection conn,
String service,
String queryString,
InputStream in) |
public CacheBackendDaoPostgres()
public CacheBackendDaoPostgres(long timeToLive)
public CacheEntryImpl lookup(Connection conn, String service, String queryString, boolean closeConn) throws SQLException
CacheBackendDaolookup in interface CacheBackendDaocloseConn - Whether to close the connection when the inputStream is closed or consumedSQLExceptionpublic void write(Connection conn, String service, String queryString, InputStream in) throws SQLException, IOException
write in interface CacheBackendDaoSQLExceptionIOExceptionCopyright © 2015. All rights reserved.