开发者

C# Redis with ServiceStackRedis

I was 开发者_运维知识库happy to find C# bindings for Redis with ServiceStackRedis. But when I tried to make a simple forms application and try to build the program it shows me error that RedisClient and ServiceStack.Redis etc are not found. But I already added those references to my project. Also while coding it properly shows the help text showing the constructor types RedisClient expects etc.. Is there any simple c# project example with redis available online? Any insight about how to use ServiceStackRedis is appreciated.

Regards, Lalith


I have a few examples currently available:

Here is the source code and the complete download (which includes Redis and RavenDB Window Servers) for the benchmarks comparing Cygwin Redis vs RavenDB as detaied in this blog post.

The Redis Admin UI includes a Web Services layer (JSON, XML, JSV, SOAP, etc) around each Redis operation which you can be download here.

Here is the self-contained unit tests for BlogPostExample.cs and BlogPostBestPractice.cs that show how you would build a simple blog using Redis.

You can also check out NHRedis (https://github.com/boxerab/NHRedis) as another open source project which makes use of the ServiceStack.Redis client.

Note: The Redis Client is also bundled with every version of ServiceStack.zip which you can also use.

Hope this helps!

-Demis

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜