WHOAHBOT!

DataMapper and Redis

Listen:

When we last left our hero, he was slinging silly coffees with someone named jason. This week, dear friends, the shiniest bauble to have caught the Whoahbot’s eye happens to be a chrome-plated, espresso powered monster called Redis

About Redis

Redis is a key-value database. It is similar to memcached but the dataset is not volatile, and values can be strings, exactly like in memcached, but also lists and sets with atomic operations to push/pop elements.

This is the description on the home page, and you may be thinking: “Crumbs, I really have to go… I just saw a bit of paint drying in my kitchen that I must attend to”. But oh let me tell you, this is the ferrari of key-value databases:

====== GET ======
  10000 requests completed in 0.26 seconds
  50 parallel clients
  38759.69 requests per second

====== SET ======
  10004 requests completed in 0.24 seconds
  50 parallel clients
  41000.00 requests per second

I highly suggest that you dig out your rubies and try the excellent libraries offered by Ezra at Github, or try the Gelato of DataMapper adapters.