Repository navigation
gedis-v0.1.7.zip
closes #17 #18 #19 #20 #21 #22
This pull request introduces significant new functionality and improvements to the Gedis Godot addon, expanding its feature set, improving documentation, and refining its API for better usability and consistency. The changes include new commands for hashes, lists, sets, and sorted sets, enhancements to the documentation, and workflow automation for documentation deployment.
Feature Additions & API Enhancements
Hashes
- Added support for multi-field operations:
hmget,hmset,hincrby, andhincrbyfloatfor efficient batch access and updates to hash fields.
Lists
- Added advanced list commands:
lmove,ltrim, andlinsertfor flexible list manipulation, including moving elements between lists, trimming lists to a specified range, and inserting elements relative to a pivot.
Sets
- Added set operations:
sunion,sinter,sdiff, and their corresponding store variants, as well assrandmemberfor random member selection, greatly improving set functionality and parity with Redis.
Sorted Sets
- Overhauled sorted set API:
- Changed
zrangeandzrevrangeto use start/stop indices for consistency and flexibility. - Added commands:
zscore,zrank,zrevrank,zcount,zincrby,zrangebyscore,zrevrangebyscore,zunionstore, andzinterstorefor comprehensive sorted set management. [1] [2]
- Changed
Documentation & Workflow
Documentation
- Updated
README.mdto reflect new commands and improved descriptions for all data types. - Added a new
CONTRIBUTION.mdfile with clear instructions for contributing, testing, and documentation requirements. [1] [2]
Automation
- Added a GitHub Actions workflow (
deploy-docs.yml) for automatic deployment of documentation to GitHub Pages.
Miscellaneous Improvements
Debugging & Consistency
- Improved debugger output to include TTL and standardized type naming (e.g., using
"zset"instead of"sorted_set"). [1] [2] [3] - Refactored initialization in core files for improved clarity and maintainability. [1] [2]
- Renamed string increment function to
incrbyfor consistency with Redis naming conventions.
Core Functionality
- Added
restore_key,rename, andmovemethods to core for key management and restoration.