6 Commits

Author SHA1 Message Date
Jacob Schmidt
2944eac2f8 feat: Implement automatic backup on data modification
Some checks failed
Build / build (push) Failing after 1m20s
Added automatic backup system that triggers saves when data is modified. Changes include:

- Added tracking of data modifications in BackupSystem.cs

- Added debounce timer (5s) to prevent excessive backups during rapid changes

- Modified string, list, and hash operations to track data changes

- Ensures data is saved shortly after modifications without impacting performance
2025-05-03 22:57:13 -05:00
Jacob Schmidt
a03246a07d fix: Correctly return list length in HandleLLengthCommand
Some checks failed
Build / build (push) Failing after 1m17s
The previous implementation of `HandleLLengthCommand` was not correctly returning the list length. It was using `ListStoreWithReadLock` in a way that didn't capture the return value.

This commit fixes this issue by:

- Modifying `ListOperations.cs` to use the generic `ListStoreWithReadLock` method correctly, ensuring that the length of the list is returned.
- Updating the XML documentation in both `artifacts/native/Firefly.xml` and `artifacts/exe/Firefly.xml` to accurately reflect that `HandleLLengthCommand` returns the length of the list.
2025-04-13 16:53:56 -05:00
Jacob Schmidt
44f6b40e79 feat: Implement LLEN command to get list length
Some checks failed
Build / build (push) Failing after 1m1s
This commit introduces the LLEN command, which allows users to retrieve the length of a list stored in the database.

- Added `HandleLLengthCommand` function to `ListOperations.cs` to handle the LLEN command logic. This function retrieves the list associated with the given key and returns its length. If the key does not exist, it returns 0.
- Updated `Firefly.cs` to include the LLEN command in the command processing logic, mapping the "LLEN" command to the `HandleLLengthCommand` function.
2025-04-13 16:49:05 -05:00
Jacob Schmidt
9503e7c42d Update project structure and add initial configuration files
Some checks failed
Build / build (push) Failing after 1m15s
2025-04-11 18:40:54 -05:00
Jacob Schmidt
c7c30c64dc Initial Repo Setup
Some checks failed
Build / build (push) Has been cancelled
v1.0.0
2025-04-10 21:54:36 -05:00
Jacob Schmidt
de14285314 Initial Repo Setup 2025-04-10 21:50:41 -05:00