From b0f8b28977e59b7fbfc1ce57ee5c102b8e4e0690 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Feb 2023 11:54:05 +0100 Subject: Touch documents on read (i.e. reset timeout on read) --- storage.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'storage.h') diff --git a/storage.h b/storage.h index f997657..131b786 100644 --- a/storage.h +++ b/storage.h @@ -30,6 +30,8 @@ public: void setCursorPos(const std::string& id, int cursorPos); void setRow(const std::string& id, const std::string& document, int rev, int cursorPos); + void touchDocument(const std::string& id); + void cleanup(); std::string generate_id(); @@ -55,6 +57,7 @@ private: CompiledSQL m_stmt_setRow; CompiledSQL m_stmt_getDbSizeGross; CompiledSQL m_stmt_getDbSizeNet; + CompiledSQL m_stmt_touchDocument; }; uint32_t checksum32(const std::string& s); -- cgit v1.2.3