After learning the basic opreation of Redis,we should take some time to summarize the usage. And I wrote my first edition RedisHelper.Here is the code: The Interface IRedis: public interface IRedis { ITransaction GetTransaction(, bool isRead = false)…
Data play an important part in our project,how can we ensure correctness of the data and prevent the data from error.In relational database, we are famillar with the usage of transaction. begin opreations commit/rollback But there are some difference…
This post is mainly about how to use the commands to handle the Strings of Redis.And I will show you both the native commands and the usage of the StackExchange.Redis.The version of Redis is 3.2.3 and the vesion of StackExchange.Redis is 1.1.604-alph…
This post is mainly about the publishment and subscription in Redis.I think you may subscribe some offiial accounts on wechat,and when the authors published something new to their accounts,you will get them in your wechat.The instance can make you un…
Redis's List is different from C#'s List,but similar with C#'s LinkedList.Sometimes I confuse with them.I expect that you won't mix them and have a clear mind of them. There are 17 commands we can use in List. Push and pop are the base opreation of t…
The last post is mainly about the unsorted set,in this post I will show you the sorted set playing an important role in Redis.There are many command added after the version 2.8.9.OK,let's see the below picture firstly.There are 24 commands to handle…
This post will introduce you to some usages of Set in Redis.The Set is a unordered set,it means that the data was stored in the database randomly.And there are 15 commands you can use in Redis,the same as Hash. For storing the data to database,we can…
When you first saw the name of Hash,what do you think?HashSet,HashTable or other data structs of C#?As for me, the first time I saw the Hash,I considered is as the HashTable.Actually,Hash can identify with HashTable,the same as DataRow.A row data of…
Nowaday, Redis became more and more popular , many projects use it in the cache module and the store module. There are already many people wrote posts about Redis.And I am vary pleasure to join them to share my learing of Redis. But I am new in this…
使用 StackExchange.Redis 封装属于自己的 RedisHelper 目录 核心类 ConnectionMultiplexer 字符串(String) 哈希(Hash) 列表(List) 有序集合(sorted set) Key 操作 发布订阅 其他 简介 目前 .NET 使用访问 Redis 的的类库主流应该是 StackExchange.Redis,自己参考网上的文章(也许是吃饱了撑着),也尝试做出简单的封装. /// <summary> /// Redis 助手 ///…