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

  • Home
  • SEARCH
  • 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 8152317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:40:33+00:00 2026-06-06T15:40:33+00:00

In the Redis documentation when you call the Get operation and key doesn’t exist,

  • 0

In the Redis documentation when you call the Get operation and key doesn’t exist, it is supposed to return Nil. (Source: http://redis.io/commands/get)

How does the ServiceStack client handle this? Does it reutn null, or do I need to use Exists, ContainsKey?

Is there another approach to check if key exists and return value using one request?

  • 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-06-06T15:40:35+00:00Added an answer on June 6, 2026 at 3:40 pm

    You’ll get null back if you try to get a key that does not exist.

    There are lots of different ways to get keys using IRedisClient, but here’s an example:

    GetValue()

    If you’re interested IRedisNativeClient goes directly against the metal in a 1-1 command fashion.

    You can do multiple things in one request by using a pineline or transaction. For example:

    using(var pipeline = client.CreatePipeline())
    {
        pipeline.QueueCommand(r => r.GetSetCount("key1"), count => count1 = count);                
        pipeline.QueueCommand(r => r.GetSetCount("key2"), count => count2 = count);
        pipeline.QueueCommand(r => r.GetSetCount("key3"), count => count3 = count);
        pipeline.Flush();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Reading the Redis documentation on Virtual Memory at: http://redis.io/topics/virtual-memory With regards to vm-max-threads they
I have install the redis server using these commands, wget http://download.redis.io/redis-stable.tar.gz xvzf redis-stable.tar.gz cd
The redis documentation for ZADD states the operation is O(log N ). However, does
in Redis ( http://code.google.com/p/redis ) there are scores associated to elements, in order to
In the Redis protocol documentation it states: A client can use the same connection
Redis (a key-value store) supports lua scripts - it executes the script on the
Redis persists data and works on key value stores with a great feature called
Using redis-rb in a Rails app, the following doesn't work: irb> keys = $redis.keys(autocomplete*)
Using redis , there are a number of commands to retrieve entire data structures
Redis is a NOSQL key/value database, which reads the entire life within RAM (and

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.