Given an original string input, and two strings S and T, replace all occurrences of S in input with T. Assumptions input, S and T are not null, S is not empty string Examples input = "appledogapple", S = "apple", T = "cat", i…
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 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…