diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-10 12:51:44 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-10 12:51:44 +0200 |
commit | d872b1060bb362d439f971fa5f9f04e1907d7410 (patch) | |
tree | 224a02cb0305bd82bf34705eda4ce312dc077073 /include | |
parent | bbe69a4fb63aa7173ef767ddd8212c213ac2c3dd (diff) |
Reset cache on breaking changes
fixes #154
Diffstat (limited to 'include')
-rw-r--r-- | include/Cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Cache.h b/include/Cache.h index c16654d0..031c8b16 100644 --- a/include/Cache.h +++ b/include/Cache.h @@ -39,6 +39,9 @@ public: void removeRoom(const QString &roomid); void setup(); + bool isFormatValid(); + void setCurrentFormat(); + private: void setNextBatchToken(lmdb::txn &txn, const QString &token); void insertRoomState(lmdb::txn &txn, const QString &roomid, const RoomState &state); |