Redis key naming conventions? [closed]

What is the standard naming convention for keys in redis? I’ve seen values separated by :, but I’m not sure what the standard convention is.

For a user, would you do something like:user:00

If the user’s id was 00

Are you able to query for just the beginning of the key to return all users?

I’m mainly just hoping to avoid any future problems by researching how that work for people and why they chose them.

5 Answers
5

Leave a Comment