Thread overview | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
July 23, 2019 Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
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 |
July 25, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Tuesday, 23 July 2019 at 07:57:06 UTC, zoujiaqing wrote:
> 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.
Why? There is the excellent TinyRedis project. Does it not have some feature you need?
|
July 25, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Tuesday, 23 July 2019 at 07:57:06 UTC, zoujiaqing wrote:
> 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.
Can it connect to AWS ElastiCache cluster endpoint?
|
July 25, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Tuesday, 23 July 2019 at 07:57:06 UTC, zoujiaqing wrote:
> 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.
>
> [...]
Awesome! Huntlabs seem to really be putting in a lot of work on backend d-dev! Are there any websites/services you know of that are using the entire framework?
|
July 25, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Tuesday, 23 July 2019 at 07:57:06 UTC, zoujiaqing wrote:
> 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
I really want to dry the hunt framework but cannot lay hand on any comprehensive tutorial. Please can you direct me on any on the web
Keep on the good work
|
July 25, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On 23.07.19 09:57, zoujiaqing wrote: > Porting from java Jedis, support redis 3.x / 4.x all features and 5.x > some features. If your library is ported from another language, you're creating a derivative work. That means you need to respect the original license. A quick google search suggests that this is the original library: <https://github.com/xetorthio/jedis/tree/master/src/main/java/redis/clients/jedis>. Then the original license is the MIT license which says that you have to keep the original copyright notice and the original license intact. But you're not doing that. If I remember correctly, you Hunt guys have a history of treating copyright carelessly. When your work primarily consists of porting other people's code, you should pay more attention to that stuff, and give proper credit to the original authors. |
July 27, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dejan Lekic | On Thursday, 25 July 2019 at 16:23:58 UTC, Dejan Lekic wrote:
> On Tuesday, 23 July 2019 at 07:57:06 UTC, zoujiaqing wrote:
>> 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.
>
> Why? There is the excellent TinyRedis project. Does it not have some feature you need?
I want support 5.x streaming for it.
And 6.x cache for clent.
|
July 27, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dejan Lekic | On Thursday, 25 July 2019 at 16:25:16 UTC, Dejan Lekic wrote:
> On Tuesday, 23 July 2019 at 07:57:06 UTC, zoujiaqing wrote:
>> 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.
>
> Can it connect to AWS ElastiCache cluster endpoint?
I don't know for ElastiCache, but hunt-redis support redis cluster.
|
July 27, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to ag0aep6g | On Thursday, 25 July 2019 at 20:19:53 UTC, ag0aep6g wrote:
> On 23.07.19 09:57, zoujiaqing wrote:
>> Porting from java Jedis, support redis 3.x / 4.x all features and 5.x
>> some features.
>
> If your library is ported from another language, you're creating a derivative work. That means you need to respect the original license.
>
> A quick google search suggests that this is the original library: <https://github.com/xetorthio/jedis/tree/master/src/main/java/redis/clients/jedis>.
>
> Then the original license is the MIT license which says that you have to keep the original copyright notice and the original license intact. But you're not doing that.
>
> If I remember correctly, you Hunt guys have a history of treating copyright carelessly. When your work primarily consists of porting other people's code, you should pay more attention to that stuff, and give proper credit to the original authors.
Thanks.
But we use other language to implementation.
|
July 27, 2019 Re: Redis client hunt-redis RC1 released | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | On Saturday, 27 July 2019 at 06:08:34 UTC, zoujiaqing wrote:
> On Thursday, 25 July 2019 at 20:19:53 UTC, ag0aep6g wrote:
>> [...]
>
> Thanks.
> But we use other language to implementation.
It doesn't matter. It is all about intellectual property, algorithms and the structure. The language is the least important factor.
|
Copyright © 1999-2021 by the D Language Foundation