Commit Graph

554 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
369aa3ba89 Made hash module more compatible with hash redis-client 2024-02-27 19:46:23 +08:00
Kelvin Clement Mwinuka
fc8d301525 Removed Consumer Group in PubSub module and made the module more compatible with redis client 2024-02-27 17:45:20 +08:00
Kelvin Clement Mwinuka
160c701c3a MGET command now returns RESP nil value for non-existent keys 2024-02-27 16:07:13 +08:00
Kelvin Clement Mwinuka
088e4c25f0 Made GET, MGET, SET, MSET, SETNX commands compatible with redis client 2024-02-27 15:41:22 +08:00
Kelvin Clement Mwinuka
42154fe7dd Added discord, licence and release badges to README.md 2024-02-27 08:59:41 +08:00
Kelvin Clement Mwinuka
c81c322a22 Added installation instructions to the README.md 2024-02-26 07:15:38 +08:00
Kelvin Clement Mwinuka
b3fdc111c7 Allow commands if password is not required. Create directories for preamble and append stores if they do not exist v0.1.0 2024-02-26 06:52:53 +08:00
Kelvin Clement Mwinuka
8e60d0023a Added README.md 2024-02-26 05:49:19 +08:00
Kelvin Clement Mwinuka
406f898550 Updated goreleaser script to use brew.repository instead of brew.tap 2024-02-26 05:36:48 +08:00
Kelvin Clement Mwinuka
b32292d8be Implemented command that returns all the commands in the server 2024-02-26 05:31:38 +08:00
Kelvin Clement Mwinuka
f7164cf305 Added goreleaser workflow to create releases on tag pushes 2024-02-26 00:50:50 +08:00
Kelvin Clement Mwinuka
fbb0b8dc8d Removed plugin-dir cli flag as its not used 2024-02-26 00:37:00 +08:00
Kelvin Clement Mwinuka
5e1e362b28 Updated flags from camelCase to kebab-case 2024-02-25 23:27:57 +08:00
Kelvin Clement Mwinuka
76c4226401 Added eviction policy to feature roadmap 2024-02-25 23:15:26 +08:00
Kelvin Clement Mwinuka
ec65822fdd Added basic description to README.md 2024-02-25 23:01:04 +08:00
Kelvin Clement Mwinuka
02351a3374 Re-enabled cluster instances in docker-compose 2024-02-25 22:00:07 +08:00
Kelvin Clement Mwinuka
2bdfc2e15c Implemented options pattern for AOF engine 2024-02-25 16:15:27 +08:00
Kelvin Clement Mwinuka
83f070986d Removed restore context parameters in AOFEngine 2024-02-25 15:19:16 +08:00
Kelvin Clement Mwinuka
8d7fe0225a Created AppendReadWriter and PreambleReadWriter interfaces for file handling in the log and preamble packages respectively.
Seek to the beginning of the preamble file after truncating.
2024-02-25 15:16:27 +08:00
Kelvin Clement Mwinuka
f2e32d8b4f Implemented truncate of preamble and aof files 2024-02-25 12:07:41 +08:00
Kelvin Clement Mwinuka
ab366c4f73 Craeted AppendStore and PreambleStore engines 2024-02-25 11:39:51 +08:00
Kelvin Clement Mwinuka
b0375f2ef1 Renamed dev dockerfile to 'Dockerfile.dev' 2024-02-23 05:05:57 +08:00
Kelvin Clement Mwinuka
c8a2700ab1 Remvoed CGO_ENABLED env var on go build command in makefile 2024-02-23 05:03:16 +08:00
Kelvin Clement Mwinuka
9a4f58a3f0 Implemented test case for ZRANGESTORE command handler 2024-02-22 08:26:21 +08:00
Kelvin Clement Mwinuka
b26743bd28 Added numbering to last test case in ZRANGE test table 2024-02-22 07:32:04 +08:00
Kelvin Clement Mwinuka
045691ae94 Created unit test case for ZRANGE command handler 2024-02-22 07:30:42 +08:00
Kelvin Clement Mwinuka
4d6ee2ea37 Refactored ZRANGE and ZRANGESTORE command handlers 2024-02-22 06:13:43 +08:00
Kelvin Clement Mwinuka
3e9f921cff Made unit test for ZREMRANGEBYRANK command handler 2024-02-22 05:59:46 +08:00
Kelvin Clement Mwinuka
4792516d6d Added unit test for ZREMRANGEBYLEX command handler 2024-02-22 05:40:57 +08:00
Kelvin Clement Mwinuka
3c85f986b7 Implemented unit test for ZREMRANGEBYSCORE command handler 2024-02-22 05:23:58 +08:00
Kelvin Clement Mwinuka
ba61e103ee Implemented unit test for ZREM command handler 2024-02-22 04:53:25 +08:00
Kelvin Clement Mwinuka
464f8cd1b6 Implemented unit test for ZRANK command handler 2024-02-22 04:31:30 +08:00
Kelvin Clement Mwinuka
438988dbe2 Implemented unit test for ZRANDMEMBER command handler 2024-02-22 04:00:41 +08:00
Kelvin Clement Mwinuka
11a68c9a2f Implemented unit test for ZSCORE command handler 2024-02-22 03:24:18 +08:00
Kelvin Clement Mwinuka
f29202534d Implemented test for ZMSCORE command handler 2024-02-22 03:12:59 +08:00
Kelvin Clement Mwinuka
1350b3a5c1 Added test case for ZPOPMIN and ZPOPMAX command handlers 2024-02-22 02:27:23 +08:00
Kelvin Clement Mwinuka
b7d56934c4 Added Equals receiver funcion on SortedSet to compare deep equality of two sorted sets. Created unit test for ZMPOP command handler 2024-02-22 00:54:28 +08:00
Kelvin Clement Mwinuka
3de114ca00 Implemented test case for ZINCRYBY command handler 2024-02-21 22:52:04 +08:00
Kelvin Clement Mwinuka
903bc34bae Use key extarction function in ZINCRBY command handler 2024-02-21 03:42:45 +08:00
Kelvin Clement Mwinuka
3097826e77 Implemented unit tes for ZUNIONSTORE command handler 2024-02-21 03:25:35 +08:00
Kelvin Clement Mwinuka
ed735b9dbd Implemented divide & conquer function for calculating the union of multiple sets. Implemented unit test for ZUNION command handler 2024-02-21 01:04:34 +08:00
Kelvin Clement Mwinuka
0e657baa2e ZINTERSTORE command handler now uses new Intersect divide & conquer function instead of the old Intersect receiver function.
Intersect receiver function on SortedSet reference has been deleted as it's no longer in use.
Added test for ZINTERSTORE command handler.
2024-02-20 23:25:22 +08:00
Kelvin Clement Mwinuka
a3bb3e9b34 Created divide & conquer Intersect function to calculate the intersection between 2 sorted sets.
Used new Intersect function to calculate intersection in ZINTER command handler.
Implemented unit test for ZINTER command handler.
2024-02-20 22:14:03 +08:00
Kelvin Clement Mwinuka
bb5ea92990 Added unit test for ZDIFFSTORE command handler 2024-02-20 05:50:21 +08:00
Kelvin Clement Mwinuka
59b9e5da45 Implemented test for ZDIFF command handler 2024-02-20 05:10:58 +08:00
Kelvin Clement Mwinuka
00c0fb5442 Implemented test for ZLEXCOUNT command handler 2024-02-20 03:39:13 +08:00
Kelvin Clement Mwinuka
6bb3c83758 Implemented test for ZCOUNT command handler 2024-02-20 03:17:53 +08:00
Kelvin Clement Mwinuka
5b6946d8f2 Added infinity scores to ZADD command test 2024-02-20 02:59:47 +08:00
Kelvin Clement Mwinuka
4e2d34b05d Implemented unit test for ZCARD command handler 2024-02-20 02:57:26 +08:00
Kelvin Clement Mwinuka
f5015a8cc6 Implemented test case for ZADD command handler. Added error returns for incompatible flags in ZADD commands 2024-02-20 01:33:46 +08:00