Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features #41

Merged
merged 6 commits into from
Jul 3, 2024
Merged

Features #41

merged 6 commits into from
Jul 3, 2024

Conversation

croessner
Copy link
Owner

No description provided.

Christian Roessner added 6 commits July 3, 2024 14:42
This update modifies the RedisSet function in the server/lualib/rediscli file to include an optional expiration argument. If a third argument is provided when the function is called, it will be used as the key's expiration time in seconds.

Signed-off-by: Christian Roessner <[email protected]>
Introduced helper functions to perform bidirectional conversion between Lua and Go types. Extended Redis functions to support different data types instead of just strings. Updated function names in the Lua library for consistency.

Signed-off-by: Christian Roessner <[email protected]>
The commit refactors the way Redis functions are being set up in various Lua files to reduce code redundancy. The new 'SetUPRedisFunctions' in rediscli.go is now used to set up all the Redis functions in one place. The commit also introduces several new Redis Hash operations like RedisHGet, RedisHSet, RedisHDel, RedisHLen, RedisHGetAll, and RedisHIncrBy to interact with Redis database from Lua.

Signed-off-by: Christian Roessner <[email protected]>
This commit adds the ability to handle nil types in both Lua code and Redis commands. It involves updates to two areas - 'rediscli.go' in the server lua library and 'const.go' in the global settings. Now, the system can correctly recognize and process the nil type.

Signed-off-by: Christian Roessner <[email protected]>
The new function, RedisHExists, has been added to the lualib. It checks whether a particular field exists in a Redis hash stored at a specified key. It interacts with the Redis instance via the ReadHandle, providing an error message or the existence of the field. Also, the function name 'redis_hexists' has been added to global const for ease of use.

Signed-off-by: Christian Roessner <[email protected]>
The Redis functionalities in the Lua library have been enhanced. The function 'RedisHIncrBy' was updated to increment a hash field in a Redis data structure and 'RedisHIncrByFloat' was added to handle floating point increments. The documentation for both functions was also improved for better clarity.

Signed-off-by: Christian Roessner <[email protected]>
@croessner croessner merged commit 9da2c35 into main Jul 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant