Add ability to store variables inside redis server database #18
Labels
No Label
Memory leak
Skript-bug
Suggestion
bug
completed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
investigating
question
wontfix
work in progress
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Limework/RediSkript#18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In sklib it was possible for redis variables to be updated for servers even if they're offline but sklib isn't updated anymore and it has a few issues. Is there a way to do it with this addon and if not can you please add an option in the config file?
you can do it by saving variables instead of sending them until the server comes online, with your own server online detection code. I am not aware of any easy way to add this feature, as this add-on does not work based on servers, it works based on redis channels, which are always available as long as redis server is online.
I have looked into sklib source code and it seems to be setting redis variables, not Skript variables. RediSkript only uses redis messaging functionality to transmit skript variables, it does not save them on the redis server
so sklib isn't saving variables on the server, it does connection to redis server to get a variable when requested
to implement this feature, it would require 50ms+ delay every time a single redis variable is retrieved, I do not think it's a good idea with Skript's limitations when it comes to multi threading
If someone makes one, I will accept a pull request that adds redis variables feature as a second option of managing variables.
Please make it so redis variables can be updated even for offline servers.to Add ability to store variables inside redis server databaseif we look into SkriptDB it does make type for database we could make jedis class as type in skript?
sample skript code: