标签: redis

redis 持久化

redis的所有数据保持在内存,如果突然宕机,数据会丢失;必须有种机制保证redis不会因为故障而丢失数据,这就是持久化机制。 AOF(append only file) 相关配置 配置名称 配置值 …

redis的淘汰策略

淘汰策略 作用 使用场景 noeviction 默认的淘汰策略,不会使数据丢失,但不会在写入了(除非进行删除操作),会线上业务出现问题 volatile-lru 设有过期时间的key,最久没使用的淘汰…

Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/my-wordpress/index.php/tag/redis/) is not within the allowed path(s): (/www/wwwroot/my-wordpress/:/tmp/) in /www/wwwroot/my-wordpress/wp-content/plugins/matomo/classes/WpMatomo/AIBotTracking.php on line 175