pub async fn setup(client: &Client) -> Result<(), Box<dyn Error>>
Expand description
Initializes a Redis instance with the Lua library functions required for locking.
This only needs to be done once per Redis instance, although re-doing it should be fine.
ยงErrors
- When
Client::get_connection
errors. - When the Lua library functions cannot be loaded into Redis.