|
let uuid = redis::Script::new(UUID_SCRIPT) |
It would be a small performance boost for struct init, when you do not need to communicate with redis to get a unique ID. UUID should have in practice no collisions, but you never know.
User could decide with feature-flags.
types/src/redis/lock.rs
Line 95 in 19581c6
It would be a small performance boost for struct init, when you do not need to communicate with redis to get a unique ID. UUID should have in practice no collisions, but you never know.
User could decide with feature-flags.