Redis client hunt-redis RC1 released

zoujiaqing zoujiaqing at gmail.com
Tue Jul 23 07:57:06 UTC 2019


A Powerfull Redis client library for D Programming Language.

Porting from java Jedis, support redis 3.x / 4.x all features and 
5.x
  some features.

So what can I do with Redis?

All of the following redis features are supported:

  * Sorting
  * Connection handling
  * Commands operating on any kind of values
  * Commands operating on string values
  * Commands operating on hashes
  * Commands operating on lists
  * Commands operating on sets
  * Commands operating on sorted sets
  * Transactions
  * Pipelining
  * Publish/Subscribe
  * Persistence control commands
  * Remote server control commands
  * Connection pooling
  * Sharding (MD5, MurmurHash)
  * Key-tags for sharding
  * Sharding with pipelining
  * Scripting with pipelining
  * Redis Cluster

To use it just:

```D
Redis redis = new Redis("localhost");
redis.set("foo", "bar");
string value = redis.get("foo");
```

Redis Cluster:

Redis cluster specification (still under development) is 
implemented

```D
Set!(HostAndPort) redisClusterNodes = new HashSet!(HostAndPort)();
//Redis Cluster will attempt to discover cluster nodes 
automatically
redisClusterNodes.add(new HostAndPort("127.0.0.1", 7379));
RedisCluster rc = new RedisCluster(redisClusterNodes);
rc.set("foo", "bar");
string value = rc.get("foo");
```

Welcome to use and test it :)

https://github.com/huntlabs/hunt-redis
https://code.dlang.org/packages/hunt-redis


More information about the Digitalmars-d-announce mailing list