Keys
The keys functions are used to manage the keys in the redis database.
Params
- Pattern(*) is the pattern that will be used to find the keys.
- Function(OPTIONAL) is the function that will be executed when the query is finished.
Return
If you've specified a function it will return the result of the query in the function, if not it will return the result of the query.
Functions
exports["ice_mysql"]:RedisKeys(pattern, function)
Use
Awaitable
local result = MySQL.Redis.RedisKeys("*name*")
Callback
- Callback will return the same as the awaitable function but in the callback function.
- If the callback is not provided it will return the same as the awaitable function.
- If you want to make the query to execute in the main thread you have to specify a simple function like this:
() => {}
to do anything depending on the language.
MySQL.Redis.RedisKeys("*name*", function(result)
print(result)
end)