
本地缓存
大象_
技术,是服务于人而不是局限住人的。
写博客一是记录一些开发笔记以及思路,二是希望自己整理的笔记和心得能帮助到遇到问题的开发。
展开
-
Redis报错:ERR offset is out of range; nested exception is redis.clients.jedis.exceptions.JedisDataExce
Redis报错:ERR offset is out of range; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR offset is out of range原创 2022-01-29 21:00:00 · 2254 阅读 · 0 评论 -
Redis入门、Redis教程(Windows平台)
Redis入门、Redis教程(Windows平台)一、安装Redis1、下载 Redishttps://github.com/tporadowski/redis/releases。2、启动 Rediscmd完整路径\redis-server注意:可以配置环境变量,这样不需要输入完整的路径启动日志:[3364] 10 Jan 10:56:22.939 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo[3364] 10 Jan 10:.原创 2022-01-16 00:15:00 · 499 阅读 · 0 评论 -
SpringBoot中Redis报错:NOAUTH Authentication required.; nested exception is redis.clients.jedis.exceptio
SpringBoot中Redis报错:NOAUTH Authentication required.; nested exception is redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required.1、复现org.springframework.dao.InvalidDataAccessApiUsageException: NOAUTH Authentication required.; ne原创 2022-01-15 20:45:00 · 9712 阅读 · 0 评论 -
记一次比较好的设计(单例(双重校验+volatitle)、反射(反射过后会缓存减少反射次数)、缓存(防止缓存穿透、缓存击穿))
记一次比较好的设计(单例(双重校验+volatitle)、反射(反射过后会缓存减少反射次数)、缓存(防止缓存穿透、缓存击穿))package spzc.module.fileImport.fileExport.exportor;import java.util.Map;import java.util.concurrent.ConcurrentHashMap;publi...原创 2019-11-06 16:59:28 · 242 阅读 · 0 评论 -
Java 本地缓存设计与实现:Cache(Google-Guava)& Map(JDK)
一、概要1、设计目标: * 缓存 * 存储形式:键值对; * 主要功能:存、取、清除单个、清除全部...二、实现1、实现思路定义一个接口(ICache),来规范缓存类该有的行为(存、取、清除单个、清除全部...)实现类来实现 ICache2、Demo2.1 基于 基于 Google-Guava的Cache 实现的本地缓存技术点:com.google....原创 2018-12-29 10:55:44 · 1387 阅读 · 0 评论