Redis, my new open source project

Friday, 06 March 09


I think it's the first time I talk of Redis in this blog, but for sure it is not the last: Redis will be the target of my hacking sessions for the next years, I hope.

So what's Redis about? It is a key-value database, but it is a bit different than memcachedb (a persistent version of memcached) and many others, since it's a bit an higher level business. For instance with a many key-value persistent databases you can do things like this:
SET mykey foobar
GET mykey
DEL mykey
And other similar operations in order to make locking free algorithms simpler like set-if-not-exists operations and so on. What's different about Redis is that the value can be a String data type, but even a List or a Set. You can push/pop elements, perform intersections between sets, and so on. For instance:
LPUSH user_100_messages "Indeed, you are right!"
LPUSH user_100_messages " .... "
LRANGE user_100_messages 0 10
The first two operations will push elements into a list, the next one will return the first 10 elements of the list. You can also add/remove elements from Sets, and ask for the intersection of N sets.

The SVN version of Redis supports master <-> slave replication, and I'm working to auto-expire of values. Redis is young but it will improve, and thanks to skilled people we have clients for Ruby, Python , Erlang, and soon PHP.

You can get more information and the source code here: http://code.google.com/p/redis/

If you plan to use it make sure to subscribe to the google groups. Another way to stay updated about Redis progresses is to follow my Twitter account. Every feedback is appreciated.
25025 views*
Posted at 13:23:06 | permalink | 10 comments | print
Do you like this article?
Subscribe to the RSS feed of this blog or use the newsletter service in order to receive a notification every time there is something of new to read here.

Note: you'll not see this box again if you are a usual reader.

Comments

bathroom vanities writes:
15 Dec 10, 20:50:39
This university make an exhibiotion to every picture that captured by its students. This is good and make all the students have a good confidance in everything they work. Its a good way to appreciate their activity.
http://www.esleepmasters.com/Bathroom_Vanities_s/2...
wholesale hermes neckties writes:
23 Dec 10, 03:17:28
More please, this information helped me consider a few more things, keep up the good work. http://www.sunglassescool.com/hermes_neckties-acce...
play bingo writes:
25 Dec 10, 10:48:32
All the things that you said is true. But bside that, im sure that we have a good relationship with all the people or all the country that used to be our enemy right?
maltruGens writes:
29 Dec 10, 06:54:39
From this site, I know a lot of information bout her and all the schedule that she have in her world tour. So you can choose ypour favorite place to enjoy her concert there. <a href="http://www.bellasdogtreats.co.uk/";>Dog Treats</a>
Dog Treats writes:
29 Dec 10, 06:55:25
From this site, I know a lot of information bout her and all the schedule that she have in her world tour. So you can choose ypour favorite place to enjoy her concert there. http://www.bellasdogtreats.co.uk/
Digital Videos writes:
29 Dec 10, 21:43:53
hi there
i have posted your blog on my site http://www.articlealley.com/article_1924521_45.htm...
Regards
Hoa writes:
25 Mar 11, 16:02:48
htt1
Personalized Mousepads in Bulk writes:
31 Mar 11, 05:00:31
Readers not only read the books to critize. Many of the readers read the book just to fulfill their curiousity about the content of the book.
http://www.mapleleafpromotions.com/MousePad.html
cheap journey tickets writes:
12 Apr 11, 03:32:56
The underlying hypothesis held by Oparin and Haldane was that conditions on the primeval Earth favored chemical reactions that synthesized organic compounds from inorganic precursors.http://www.onlineticketspot.com/concerts/Journey.p...
amy writes:
06 May 11, 19:42:35
looks great, just need to get it working with my own code now :)

http://www.pregnancymiraclez.net/
comments closed