Tiny Redis- a Redis driver for D
Adil
simplyadilb at gmail.com
Fri Jul 27 09:56:09 PDT 2012
Looks like Redis is not running locally. You'll need redis server
running on the default local host/port.
I have updated the docs to mention this.
On Friday, 27 July 2012 at 06:22:19 UTC, Jacob Carlborg wrote:
> On 2012-07-26 22:29, Adil wrote:
>> Announcing Tiny Redis.
>>
>> Tiny Redis is a Redis driver for the D programming language
>> (v2). The
>> api is minimalist and makes working with Redis trivial. All
>> the basic
>> operations on all data types are supported :
>>
>> strings
>> hashes
>> lists
>> sets
>> sorted sets
>> transactions
>>
>> The more esoteric features like Lua scripting and Pub/Sub have
>> not been
>> tested yet.
>>
>> Read about it here : https://github.com/adilbaig/Tiny-Redis
>>
>> If you're not familiar with Redis, go to http://redis.io/
>>
>> This is an early attempt at working in D. FWIW, i've only
>> tested this on
>> Linux with DMD 2.059. Any suggestions to improve the code (and
>> bug
>> reports) are very welcome.
>>
>> Adil
>
> Fails on Mac OS X 64bit:
>
> ~/development/d/Tiny-Redis $ make
> rdmd src/example.d src/tinyredis.d
> std.socket.SocketOSException at std/socket.d(164): Unable to
> connect socket: Connection refused
> ----------------
> 5 example 0x000000010002da9c
> std.socket.TcpSocket
> std.socket.TcpSocket.__ctor(std.socket.Address) + 48
> 6 example 0x00000001000019cf
> tinyredis.Redis tinyredis.Redis.__ctor(immutable(char)[],
> ushort) + 91
> 7 example 0x00000001000015a4
> _Dmain + 72
> 8 example 0x000000010001eb16
> extern (C) int rt.dmain2.main(int, char**).void runMain() + 34
> 9 example 0x000000010001e4cd
> extern (C) int rt.dmain2.main(int, char**).void tryExec(scope
> void delegate()) + 45
> 10 example 0x000000010001eb60
> extern (C) int rt.dmain2.main(int, char**).void runAll() + 56
> 11 example 0x000000010001e4cd
> extern (C) int rt.dmain2.main(int, char**).void tryExec(scope
> void delegate()) + 45
> 12 example 0x000000010001e457 main
> + 235
> 13 example 0x0000000100001554
> start + 52
> 14 ??? 0x0000000000000002 0x0
> + 2
> ----------------
> make: *** [example] Error 1
More information about the Digitalmars-d-announce
mailing list