你的位置:首页 > 软件开发 > 数据库 > 关于Redis中的serverCron

关于Redis中的serverCron

发布时间:2016-02-24 22:02:24
1、serverCron简介在 Redis 中, 常规操作由 redis.c/serverCron 实现, 它主要执行以下操作/* This is our timer interrupt, called server.hz times per second. ...

1、serverCron简介

Redis 中, 常规操作由 redis.c/serverCron 实现, 它主要执行以下操作

/* This is our timer interrupt, called server.hz times per second.                                   * Here is where we do a number of things that need to be done asynchronously. * For instance: *  * - Active expired keys collection (it is also performed in a lazy way on *  lookup). * - Software watchdog. * - Update some statistic. * - Incremental rehashing of the DBs hash tables. * - Triggering BGSAVE / AOF rewrite, and handling of terminated children. * - Clients timeout of different kinds. * - Replication reconnection. * - Many more... *  * Everything directly called here will be called server.hz times per second, * so in order to throttle execution of things we want to do less frequently * a macro is used: run_with_period(milliseconds) { .... } */ 

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:关于Redis中的serverCron

关键词:Redis

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录