Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6240943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:39:55+00:00 2026-05-24T11:39:55+00:00

What is the standard naming convention for keys in redis? I’ve seen values separated

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:39:56+00:00Added an answer on May 24, 2026 at 11:39 am

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

    Yes, colon sign : is a convention when naming keys. In this tutorial on redis website is stated: Try to stick with a schema. For instance "object-type:id:field" can be
    a nice idea, like in "user:1000:password". I like to use dots for
    multi-words fields, like in "comment:1234:reply.to".

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

    If you mean something like directly querying for all keys which starts with user: there is a keys command for that. This command should be however used only for debugging purpose since it’s O(N) because it’s searching through all keys stored in database.

    More appropriate solution for this problem is to create dedicated key, let’s name it users, which will store all the users keys, for example, in list or set data structure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any standard naming convention for VB.NET ? Based your programming experiences, would
Is there any unofficial standard naming convention for partial views? I've seen someone suggested
There doesn't seem to be any sort of standard naming convention for OpenSSL certificates,
In a standard foreach loop, is there a generally accepted naming convention for the
The standard naming convention in the Java world is to name packages, classes and
As a beginning programmer, I'm trying to settle on a standard naming convention for
I'm already familiar with the standard Java package naming convention of using a domain
I want to make a tool to check the naming convention and comments standard
The Question I would like to know if there is a standard convention for
What is standard or most-popular naming convention for MSVC library builds. For example, for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.