Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added redis and some couchdb examples.

  • Loading branch information...
commit 5e1837d3c2b8fd261a7eabcaedb319dc4754b48c 1 parent b63554b
@spraints authored
Showing with 73 additions and 6 deletions.
  1. +73 −6 03-nosql/other-databases.md
View
79 03-nosql/other-databases.md
@@ -30,19 +30,86 @@
![Visual guide to nosql systems](visual-guide-to-nosql-systems.png)
-# should this be used in place of the other slides?
-
!SLIDE
# how to use some of these
-!SLIDE
-# (redis commands)
+!SLIDE commandline incremental
+
+# Redis
+
+ $ SET presentation:name "NOSQL Brown Bag"
+ "OK"
+
+ $ GET presentation:name
+ "NOSQL Brown Bag"
+
+!SLIDE commandline incremental
+
+# Redis
+
+ $ SET presentation:slides 1
+ "OK"
+
+ $ INCR presentation:slides
+ 2
+
+!SLIDE commandline incremental
+
+# Redis
+
+ $ SET presentation:interesting true
+ "OK"
+
+ $ EXPIRE presentation:interesting 45
+ "OK"
+
+ $ TTL presentation:interesting
+ 37
+
+!SLIDE bullets
+
+# Redis
+
+* List
+* Set
+* Sorted set
+* <http://try.redis-db.com/>
!SLIDE
-# (couch documents)
+
+# CouchDB
+
+ @@@ javascript
+ {
+ "first_name": "Matt",
+ "employer": "SEP",
+ "hobbies": [
+ "programming",
+ "farming"
+ ]
+ }
+
+!SLIDE commandline incremental
+
+# CouchDB
+
+ $ curl -X PUT http://localhost:5984/test/
+ {"ok":true}
+
+ $ curl -X PUT -d '{"name": "Matt"}' http://localhost:5984/test/maburke
+ {"ok":true,"id":"maburke",
+ "rev":"1-47804390369d435cb116403da935bdd5"}
+
+ $ curl http://localhost:5984/test/maburke
+ {"_id":"maburke","_rev":"1-47804390369d435cb116403da935bdd5",
+ "name":"Matt"}
+
!SLIDE
-# (couch design documents)
+
+# CouchDB
+
+ @@@ javascript
!SLIDE
# (mongo documents)
Please sign in to comment.
Something went wrong with that request. Please try again.