Redis 4.0-rc1 发布了,这是 4.0 的首个 RC 版。Redis 是一个高性能的key-value数据库。Redis 的出现,很大程度补偿了memcached这类keyvalue存储的不足,在部分场合可以对关系数据库起到很好的补充作用。它提供了Python,Ruby,Erlang,PHP客户端,使用很方便。

以下是该版本发布值得关注的内容:

Major features

  • Redis 模块化系统。Redis now allows developers to write modules that can extend the Redis functionalities and implement new data types. The module API implements a complete abstraction layer that separates the Redis core from the module implementation, allowing the same module to be loaded by different versions of Redis without modifications.

  • 部分复制 (PSYNC) 版本 2。The replication protocol was enhanced (in a backward compatible way, so that 4.0 can still act as a slave of older instances) in order to be able to partially resynchronize slaves and masters in conditions where it was impossible in the past: after a master switch because of a failover and when a slave instance is restared. Even masters turned into slaves will usually be able to partially resynchronize with the new master, if the new master was a former slave of the old master instance. The way the replication work for chained slaves (sub-slaves) is now very different, and each slave receives the same replication stream generated by the top-level master.

  • 缓存淘汰算法改进。Redis 4.0 implements LFU (Least Frequently Used) as a new eviction algorithm, and improves the functionality, performances and precision of the existing algorithms.

  • 键的异步释放。Redis is now able to delete keys in the background in a different thread without blocking the server. The new `UNLINK` command is the same as `DEL` but working in a non blocking way. Similarly an `ASYNC` option was added to `FLUSHALL` and `FLUSHDB` in order to let the entire dataset or a single database to be freed asynchronously.

  • 混合 RDB-AOF 格式。If enabled the new format is used when rewriting the AOF file: the rewrite uses the more compact and faster to generate RDB format, and an AOF stream is appended to the file. This allows faster rewrites and reloads when using the AOF persistence.

  • 新的内存监控命令, able to perform memory analysis of different kinds: troubleshooting of memory issues (with MEMORY DOCTOR, similar to LATENCY DOCTOR), reporting of the amount of memory used by a single key, more in-depth reporting of Redis memory usage compared to what the INFO command offers.

  • Redis 集群对 NAT / Docker 的支持。 There are new functionalities in order to force cluster instances to announce specific sets of IP address, client and bus ports, to the rest of the cluster, regardless of the auto detected IP. This required a bus protocol change that will force users to mass-restart all the nodes of a Redis 3.2 installation in order to upgrade to 4.0.

  • Redis现在使用更少的内存,以便存储相同数量的数据。 The gain depends a lot on the kind of dataset stored.

Smaller features

  • 改进 RDB 格式以支持 64 位长度,二进制排序集分数等。 The RDB file check utility now uses the same code base of the one used by Redis itself in order to load the RDB file in memory.

  • SWAPDB 命令: ability to completely and immediately (no latency) replace two Redis databases.

  • Improvements to `dict.c`, the Redis hash table implementation.

  • Security improvements mapping POST and Host: commands to QUIT in order to prevent cross protocol scripting attacks.

  • RPUSHX and LPUSHX now accept a variable number of elements.

  • Reporting of additional memory used by copy on write in the INFO output.

  • Serious refactoring of many core parts of Redis.

了解更多更新信息,查看完整发布说明:https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES

转载于:https://www.cnblogs.com/zrbfree/p/6164546.html

161128、Redis 4.0发布及其新功能介绍相关推荐

  1. AndroidStudio3.0 下载使用新功能介绍

    谷歌2017发布会更新了挺多内容的,而且也发布了AndroidStudio3.0预览版,一些功能先睹为快.(英语一般,有些翻译不太好) 下载地址 https://developer.android.g ...

  2. 微信收款接口_企业微信:3.0.26版本新功能介绍

    一.客户联系功能增强 对外收款 员工可以在聊天中直接向微信用户收款了,收款时还可要求顾客填写联系信息方便邮寄.所收款项进入企业的微信支付商户号由企业统一管理,企业还可查看每个员工的收款业绩明细. 其他 ...

  3. Photoshop 2023 Mac(PS 2023)v24.0.0中英文已发布,新功能详细介绍,支持M1/M2/intel

    最新的Photoshop2023激活版正式发布,并附上了详细的ps2023安装教程及图解,让您一目了然.从 Photoshop 开始,惊艳随之而来,从社交媒体贴子到修饰相片,设计横幅到精美网站,日常影 ...

  4. MySQL 8.0有什么新功能

    https://mysqlserverteam.com/whats-new-in-mysql-8-0-generally-available/ 我们自豪地宣布MySQL 8.0的一般可用性. 现在下载 ...

  5. CASS11.0新功能介绍(支持AutoCAD2020平台,用户可以体验高雅黑带来的极致眼颜)

    南方CASS软件是广东南方数码科技股份有限公司基于CAD平台开发的一套集为一体的软件系统.软件市场占有率遥遥领先,已经成为业内应用最广.使用最方便快捷的软件品牌.服务范围涵盖了市政.地质.国土规划.水 ...

  6. android8OPPO,安卓8.0发布,这个功能OPPO必须为用户提供升级!

    原标题:安卓8.0发布,这个功能OPPO必须为用户提供升级! 当需要oppo跟vivo用户还在绞尽脑汁让厂家为自己手中的设备升级到安卓7.1系统的之际,今天凌晨,谷歌发布了最新的安卓8.0的预览版An ...

  7. Corel 会声会影 2023 旗舰版雨糖科技v26.0.0.163特别版新功能介绍

    Corel 会声会影 2023 旗舰版雨糖科技v26.0.0.163特别版是一款使用起来十分件便捷的影视后期视频编辑处理软件,会声会影正式版操作简单,还具备了独特创意.灵活有趣等特点,并且软件还具备了 ...

  8. 一加3t氢android8_一加3升级安卓8.0更新一览 一加3t安卓8.0有什么新功能

    一加3/一加3t在万圣节迎来了安卓8.0,这两款手机在去年是备受好评,一加也是非常良心的推出了氢OS公测版更新,本次更新带来了全新的安卓8.0,下面一起来看下安卓8.0有什么新功能! 配置方面,一加手 ...

  9. TypeScript 3.0 新功能介绍(二)

    2019独角兽企业重金招聘Python工程师标准>>> 转载 TypeScript 3.0 新功能介绍(二) TypeScript 3.0 新功能介绍(二) New unknown ...

  10. 为什么NX10帮助功能无法找到HTML,NX10.0 新功能介绍视频教程专辑

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 NX10.0 新功能介绍视频教程专辑 PLM之家NX10.0界面基础新功能--1 NX新界面增强.mp4 PLM之家NX10.0界面基础新功能--2 问题 ...

最新文章

  1. 如何用python实现邮箱发送信息
  2. Conda 为什么越来越慢?
  3. 微软全球执行副总裁沈向洋:你给自己的定位是什么,你就会得到什么
  4. Android 学习指南(2017版)
  5. 未对销售组织 XXX 分销渠道 00 语言 ZH 定义
  6. 从零开始学习docker(十六)Swarm mode 创建集群
  7. urllib2设置代理
  8. 双百双新产业项目是什么_投资380亿,广西38个“双百双新”产业项目开竣工
  9. python mssql session_python的web框架webpy【session amp; cookie】五 - 莫激动 - ITeye博客
  10. Github Star 4.6K,3.5M超超轻量中英文OCR模型开源,火了!
  11. Java编程思想笔记一:基本概念
  12. Snake算法与遥感影像应用,python matlab对比
  13. 【GDOI2014模拟】​Pty爬山
  14. 深度学习领域,你心目中 idea 最惊艳的论文是哪篇?
  15. 云服务器流量是什么东西_云服务器流量最大是多少?需要多少带宽?
  16. mysql数据库:varchar类型可以存储多少个汉字,多少个数字
  17. WiFi万能钥匙,真的过气了?
  18. scrapy 爬取淘宝商品评论信息
  19. Poi 自定义封装方法 合并excel中的单元格
  20. if-else练习:交换值

热门文章

  1. 手机端 H5 语音识别转化为文字 demo
  2. 如何转换图片格式?建议收藏这两个方法
  3. 词频统计 matlab,5年cvpr论文词频分析,今年最火词——深度学习
  4. matlab英文词汇,matlab中常见英文词含义
  5. lbochs模拟器最新版_bochs模拟器官方下载
  6. 对计算机网络的认识论文800,对计算机的认识论文
  7. 基于Vue2的一个人员选择插件
  8. iOS导航栏的正确隐藏方式
  9. jy-10-SPRINGMYBATIS01——Spring-成恒
  10. 服务器p盘cpu占用率低,硬盘问题导致的CPU占用率100%解决实例