Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huntlabs/hunt-redis
A Powerfull Redis client library for D Programming Language.
https://github.com/huntlabs/hunt-redis
dlang redis redis-client redis-cluster
Last synced: 2 months ago
JSON representation
A Powerfull Redis client library for D Programming Language.
- Host: GitHub
- URL: https://github.com/huntlabs/hunt-redis
- Owner: huntlabs
- License: apache-2.0
- Created: 2019-04-01T03:04:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T08:18:08.000Z (about 3 years ago)
- Last Synced: 2023-03-02T04:17:28.793Z (almost 2 years ago)
- Topics: dlang, redis, redis-client, redis-cluster
- Language: D
- Homepage:
- Size: 1.11 MB
- Stars: 13
- Watchers: 5
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Hunt Redis
A powerfull redis client for D Programming Language. Port from java [Jedis](https://github.com/xetorthio/jedis) project.## 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](http://redis.io/topics/cluster-spec) (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");
```