Commit Graph

14 Commits

Author SHA1 Message Date
Kelvin Mwinuka
85e8a68125 Close AOF engine files on shutdown. Close snapshot file after restoring snapshot on startup. Implemented tests for HELLO command in echovault package. Implemented tests for GetServerInfo in echovault package. 2024-07-03 00:53:49 +08:00
Kelvin Mwinuka
646f5bed25 Re-implemented snapshot.go logic to persist and restore multi-database state 2024-07-01 06:37:23 +08:00
Kelvin Mwinuka
081b4c7ae9 Disabled adjustMemory memory until a multi-database implementation is done. Updated function signatures in handler params for built-in commands and for modules. Disabled snapshots and snapshot restoration until a multi-database implementation is done. 2024-07-01 06:37:07 +08:00
Kelvin Mwinuka
182195ebc3 Added multi-database support to snapshot module 2024-07-01 06:05:46 +08:00
Kelvin Mwinuka
325157ab71 Disabled adjustMemory memory until a multi-database implementation is done. Updated function signatures in handler params for built-in commands and for modules. Disabled snapshots and snapshot restoration until a multi-database implementation is done. 2024-07-01 06:05:05 +08:00
Kelvin Clement Mwinuka
6afef55dbe Replaced time.After in snapshot and aof engines with ticker. 2024-06-08 23:19:23 +08:00
Kelvin Clement Mwinuka
c5f168a9a5 Test standalone snapshot persist and restore 2024-06-05 23:50:42 +08:00
Kelvin Clement Mwinuka
229b10863f Fixed data race in snapshot engine and lfu cache test 2024-05-06 17:22:08 +08:00
Kelvin Clement Mwinuka
028fb7ccdf Updated expired entry filter function to accept time boundary 'now'. Implemented tests for snapshot package 2024-05-06 14:35:55 +08:00
Kelvin Clement Mwinuka
baf5f3d5da Return error from preamble restore method instead of just logging it. Implemented test for AOF engine persist and restore flow. 2024-05-05 01:30:04 +08:00
Kelvin Mwinuka
1e421cb64a Implemented a Clock interface that is injected everywhere time.Now and time.After are used. 2024-04-05 03:11:03 +08:00
Kelvin Mwinuka
bc188cfea4 Moved some types into internal folder as they will do not need to be exported. Changed GetState method to getState to make it private to the echovault package 2024-03-26 20:26:48 +08:00
Kelvin Mwinuka
7fac4143f5 Moved utils.go file to internals folder 2024-03-26 14:00:18 +08:00
Kelvin Mwinuka
7cec2da854 Moved aof and snapshot packages to internal folder 2024-03-26 13:51:37 +08:00