Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from kbrock/master
Try Redis with links to help user type less
- Loading branch information
Showing
18 changed files
with
371 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
.sass-cache | ||
.bundle | ||
tmp/** | ||
log/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source :rubygems | ||
|
||
gem 'sinatra', '~> 1.2.6', :require => 'sinatra/base' | ||
gem 'haml', '~> 3.1.2' | ||
gem 'sass', '~>3.1.2' | ||
gem 'json', '~>1.5.1' | ||
gem 'redis', '~>2.2.1' | ||
gem 'rdiscount', '~>1.6.8' | ||
gem 'andand', '~>1.3.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
andand (1.3.1) | ||
haml (3.1.2) | ||
json (1.5.1) | ||
rack (1.3.0) | ||
rdiscount (1.6.8) | ||
redis (2.2.1) | ||
sass (3.1.2) | ||
sinatra (1.2.6) | ||
rack (~> 1.1) | ||
tilt (< 2.0, >= 1.2.2) | ||
tilt (1.3.2) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
andand (~> 1.3.1) | ||
haml (~> 3.1.2) | ||
json (~> 1.5.1) | ||
rdiscount (~> 1.6.8) | ||
redis (~> 2.2.1) | ||
sass (~> 3.1.2) | ||
sinatra (~> 1.2.6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Welcome to **Try Redis**, a demonstration of the | ||
[Redis](http://code.google.com/p/redis/) database! | ||
[Redis](redis.io) database! | ||
|
||
Please type TUTORIAL to begin a brief tutorial, HELP to see a list of supported | ||
Please type [TUTORIAL](#run) to begin a brief tutorial, [HELP](#run) to see a list of supported | ||
commands, or any valid Redis command to play with the database. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
Redis is what is called a key-value store, often referred to as a NoSQL | ||
database. The essence of a key-value store is the ability to store some data, | ||
called a value, inside a key. This data can later be retrieved only if we know | ||
the exact key used to store it. We can use the command SET to store the value | ||
the exact key used to store it. We can use the command [SET](#help) to store the value | ||
"fido" at key "server:name": | ||
|
||
SET server:name "fido" | ||
<pre><code> | ||
<a href="#run">SET server:name "fido"</a> | ||
</code></pre> | ||
|
||
Redis will store our data permanently, so we can later ask "What is the value | ||
stored at key server:name?" and Redis will reply with "fido": | ||
|
||
GET server:name => "fido" | ||
<pre><code> | ||
<a href="#run">GET server:name</a> => "fido" | ||
</code></pre> |
Oops, something went wrong.