Permalink
Browse files

finishing up the readme

  • Loading branch information...
1 parent 1c3e1f6 commit e97d531ff7deda12c7e70f60c6f53c33b909c201 @whoahbot whoahbot committed May 29, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.textile
View
@@ -6,6 +6,8 @@ Redis is a very fast key-value store with some interesting data structures added
<a href="http://datamapper.org">DataMapper</a> is a brilliant ORM that is based on the <a href="http://www.martinfowler.com/eaaCatalog/identityMap.html">IdentityMap</a> pattern. Usage of DataMapper resembles that of ActiveRecord, the popular ORM bundled with Ruby on Rails, but with some very important differences. A quote from the DM wiki: "One row in the database should equal one object reference. Pretty simple idea. Pretty profound impact." Having an identity map allows for very efficient queries to the database, as well as interesting forms of lazy loading of attributes or associations.
+Marrying DataMapper to Redis allows for schema-less models, you can add fields at any time without having to create a migration. DataMapper also allows us to store non native Redis types in the db, like Date fields.
+
h1. Install
Prerequisites:
@@ -22,6 +24,9 @@ Setup your adapter, define your models and properties:
<pre>
<code>
+ require 'dm-core'
+ require 'dm_redis_adapter'
+
DataMapper.setup(:default, {:adapter => "redis"})
class Cafe
@@ -35,4 +40,4 @@ Setup your adapter, define your models and properties:
</code>
</pre>
-Now you can use redis in an ORM style, and take advantage of all of the amazing things that DataMapper offers!
+Now you can use redis in a ORM style, and take advantage of all of the amazing things that DataMapper offers.

0 comments on commit e97d531

Please sign in to comment.