Clone this wiki locally
Welcome to the ServiceStack.Redis Client wiki!
This index hopes to provide a good starting page to find information about the ServiceStack's Open Source C# Redis Client.
The Redis Client runs on Windows with .NET and Linux with Mono. Included as part of ServiceStack is:
- IRedisNativeClient -A low-level API that provides raw byte access to a Redis server. Each method maps to 1:1 to a Redis operation of the same name.
- IRedisClient - A friendly, more descriptive API implemented by the ServiceStack.Redis client that provides access to key values as strings (or collection of strings for Redis lists and sets).
- IRedisTypedClient - A high-level 'strongly-typed' API available on Service Stack's C# Redis Client to make all Redis Value operations to apply against any c# type. Where all complex types are transparently serialized to JSON using ServiceStack JsonSerializer - The fastest JSON Serializer for .NET.
PooledRedisClientManagerconnection pooling implementations which plugs nicely in your local IOC and is useful when talking to Redis inside an ASP.NET application or Windows Service.
If you are new to Redis (or NoSQL in general) I recommend the following resources:
- Useful Links about Redis
- Designing a Simple Blog application with Redis
- Painless data migrations with schema-less NoSQL datastores and Redis - Which demonstrates how flexible and resilient the JsonSerializer is with the Schema-less solution used with Redis.
Redis Admin UI
Spawned from deep within the fires of Unix, for the longest time the only interface access to your Redis DataStore was through the highly-functional but still command-line only redis-cli command line utility.
Also developed in conjunction with the C# Redis Client, to help with visualizing your data in Redis is the Redis Admin UI. It was specifically designed to take advantages of the conventions of the C# Redis Client to provide a fast, functional view into your data. Like all of ServiceStack it runs on .NET and Mono with the public demo hosted on CentOS/Nginx/Mono.
The download and source code for the Redis Admin UI is maintained in the ServiceStack.RedisWebServices project.
Ajax Web Services for Redis
Effectively ServiceStack.RedisWebServices gives Redis CouchDB-like powers where the Ajax Web Services layer allows websites to talk directly to Redis without any custom middle-tier just like the Redis Admin UI :)
Advanced C# Redis Client features
After you have familiarized yourself with the basics of the Redis Client here are a few useful resources to explore the Advanced features and capabilities of Redis: