51

Redis的n种妙用,不仅仅是缓存-架构之路的博客

 5 years ago
source link: http://blog.51cto.com/13883927/2340750
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
redis是键值对的数据库,常用的五种数据类型为字符串类型(string),散列类型(hash),列表类型(list),集合类型(set),有序集合类型(zset)Redis用作缓存,主要两个用途:高性能,高并发,因为内存天然支持高并发应用场景分布式锁(string)setnx key value,当key不存在时,将 key 的值设为 value ,返回1。若给定的 key 已经存在,则setn

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK