I like to use verbose names in Redis, for instance set-allBooksBelongToUser:$userId.
set-allBooksBelongToUser:$userId
Is this ok or does that impact performance?
I don't think length of variable name will affect performance, variable will take same place as any variable will take for that datatype as far as you are not exceeding maximum name length.