Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding a few missing lines of redis-cli

  • Loading branch information...
commit 53ba59492f58622c57f54485978e8557dc7a05ab 1 parent 94f80c3
Ted Nyman tnm authored

Showing 1 changed file with 7 additions and 4 deletions. Show diff stats Hide diff stats

  1. +7 4 recipes/2_basic_commands/create_unique_ids/recipe.md
11 recipes/2_basic_commands/create_unique_ids/recipe.md
Source Rendered
@@ -7,16 +7,19 @@ You want to atomically provide a unique ID for an arbitrary object.
7 7 Utilize Redis' built-in atomic INCR function.
8 8
9 9 $redis-cli INCR <an_object_name>
10   - (interger) 1
  10 + (integer) 1
  11 +
  12 + $redis-cli INCR <an_object_name>
  13 + (integer) 2
11 14
12 15 $redis-cli INCR <another_object_name>
13   - (interger) 2
  16 + (integer) 1
14 17
15 18 $redis-cli GET <an_object_name>
16   - 1
  19 + 2
17 20
18 21 $redis-cli GET <another_object_name>
19   - 2
  22 + 1
20 23
21 24 ### Discussion
22 25

0 comments on commit 53ba594

Please sign in to comment.
Something went wrong with that request. Please try again.