Google Groups

Re: [misc] Re: New Redis Client for Dart released


Seth Ladd May 15, 2012 8:18 AM
Posted in group: Dart Misc
Thanks for sharing!

On Mon, May 14, 2012 at 9:26 PM, financeCoding <financ...@gmail.com> wrote:
Awesome!


On Monday, May 14, 2012 8:09:24 PM UTC-7, mythz wrote:
Hi Dartisians,

I've just released v1 of my new Redis Client for Dart at:
https://github.com/mythz/DartRedisClient

It's a fairly full-featured async/non-blocking Redis Client with
support (and tests) for all redis Admin operations and its string,
set, list, sorted set & hash collections. Here's a flavour of it:

RedisClient client = new RedisClient("password@localhost:6379/0");
client.smadd("setId", ["B","A","A","C","D","B","E"]);
client.smembers("setId").then((members) => print("setId contains:
$members"));
client.hmset("hashId", {"B":2,"A":1,"C":3,"D":4,"E":5});
client.hmget("hashId", ["A","B","C"]).then((values) => print("selected
hashId values: $values"));

And its output:

setId contains: [A, B, C, D, E]
selected hashId values: [1, 2, 3]

The full API and more examples is available on the project website:
https://github.com/mythz/DartRedisClient

Thanks!
- Demis