您的浏览器已禁用 JavaScript。
跳过导航链接
概览
程序包
类
使用
树
已过时
索引
帮助
上一个
下一个
框架
无框架
所有类
C
D
E
F
G
H
I
L
R
S
T
U
C
cacheManager(RedisConnectionFactory)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.config.
RedisConfig
缓存管理器配置
D
delete(String...)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
删除缓存
E
expire(String, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
指定缓存失效时间
F
findByKey(String)
- 类 中的静态方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisPropUtil
G
get(String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
普通缓存获取
getActiveProfile()
- 类 中的静态方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisSpringContextUtil
获取当前启动环境
getApplicationContext()
- 类 中的静态方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisSpringContextUtil
获取applicationContext
getBean(String)
- 类 中的静态方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisSpringContextUtil
通过name获取 Bean.
getBean(Class<T>)
- 类 中的静态方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisSpringContextUtil
通过class获取Bean.
getBean(String, Class<T>)
- 类 中的静态方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisSpringContextUtil
通过name,以及Clazz返回指定的Bean
getExpire(String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
根据key 获取过期时间
getNo(String, Long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
获取唯一编号(20位),目前只适用于个 redis, 不适用于 redis 集群 分布式架构获取唯一编号(基于redis)--> 订单号,交易号,退款号等等,如果redis 集群,需设置自增歩长,请使用命令设置或所有其他方法规避
H
hasKey(String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
判断key是否存在
hDelete(String, Object...)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
删除hash表中的值
hEntries(String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
获取hashKey对应的所有键值
hGet(String, String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
HashGet
hHasKey(String, String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
判断hash表中是否有该项的值
hIncrement(String, String, double)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
hash递增 如果不存在,就会创建一个 并把新增后的值返回
hPut(String, String, Object)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
向一张hash表中放入数据,如果不存在将创建
hPut(String, String, Object, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
向一张hash表中放入数据,如果不存在将创建
hPutAll(String, Map<String, Object>)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
HashSet
hPutAll(String, Map<String, Object>, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
HashSet 并设置时间
I
increment(String, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
递增 或 递减
io.github.wslxm.springbootplus2.starter.redis
- 程序包 io.github.wslxm.springbootplus2.starter.redis
io.github.wslxm.springbootplus2.starter.redis.config
- 程序包 io.github.wslxm.springbootplus2.starter.redis.config
io.github.wslxm.springbootplus2.starter.redis.error
- 程序包 io.github.wslxm.springbootplus2.starter.redis.error
io.github.wslxm.springbootplus2.starter.redis.lock.annotation
- 程序包 io.github.wslxm.springbootplus2.starter.redis.lock.annotation
io.github.wslxm.springbootplus2.starter.redis.lock.aspect
- 程序包 io.github.wslxm.springbootplus2.starter.redis.lock.aspect
io.github.wslxm.springbootplus2.starter.redis.util
- 程序包 io.github.wslxm.springbootplus2.starter.redis.util
isRedis()
- 类 中的静态方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
判断是否启用redis
L
lIndex(String, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
通过索引 获取list中的值
lock(String, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisLockUtil
获取一个redis分布锁, 100% 只有一个线程能获取到锁 connection.setNX : 设置一个永久对象,value值为锁的过期时间 oldTime < nowTime : 获取原锁时间判断原锁是否已过期 connection.getSet : 新线程获得锁并设置过期时间 且 再次获取原锁的过期时间 oldValue==null ... : 判断key 的原锁是否存在 和在此 原锁是否已过期 (可能同时有多个线程进入,需要再次判断)
LockAspect
-
io.github.wslxm.springbootplus2.starter.redis.lock.aspect
中的类
LockAspect()
- 类 的构造器io.github.wslxm.springbootplus2.starter.redis.lock.aspect.
LockAspect
lRange(String, long, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
获取list缓存的内容
lRemove(String, long, Object)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
移除N个值为value
lRightPush(String, Object)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
将list放入缓存
lRightPush(String, Object, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
将list放入缓存
lRightPushAll(String, List<Object>)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
将list放入缓存
lRightPushAll(String, List<Object>, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
将list放入缓存
lSet(String, long, Object)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
根据索引修改list中的某条数据
lSize(String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
获取list缓存的长度
R
RedisConfig
-
io.github.wslxm.springbootplus2.starter.redis.config
中的类
处理 redis缓存key 乱码, 以及保存对象数据设置为 json存储(默认二进制) 继承CachingConfigurerSupport, 为了自定义生成KEY的策略。
RedisConfig()
- 类 的构造器io.github.wslxm.springbootplus2.starter.redis.config.
RedisConfig
RedisErrorException
-
io.github.wslxm.springbootplus2.starter.redis.error
中的异常错误
RedisErrorException(Integer, String)
- 异常错误 的构造器io.github.wslxm.springbootplus2.starter.redis.error.
RedisErrorException
直接传递
RedisListenerConfig
-
io.github.wslxm.springbootplus2.starter.redis.config
中的类
redis key过期监听器注入bean
RedisListenerConfig()
- 类 的构造器io.github.wslxm.springbootplus2.starter.redis.config.
RedisListenerConfig
RedisLockUtil
-
io.github.wslxm.springbootplus2.starter.redis.util
中的类
RedisLockUtil()
- 类 的构造器io.github.wslxm.springbootplus2.starter.redis.util.
RedisLockUtil
RedisPropUtil
-
io.github.wslxm.springbootplus2.starter.redis.util
中的类
读取配置文件 (无法正常读取 -Dspring.profiles.active=pro 测试配置) 不区分 yml / properties,都可以读取, 不区分启动环境(自动读取 如:application.yml + application-dev.yml 配置, -dev 为当前启动的环境测试) 1、先读取 application.yml 2、在读取 application.当前启动环境.yml 3、在读取 application.properties 4、在读取 application.当前启动环境.yml
RedisPropUtil()
- 类 的构造器io.github.wslxm.springbootplus2.starter.redis.util.
RedisPropUtil
RedisSpringContextUtil
-
io.github.wslxm.springbootplus2.starter.redis.util
中的类
RedisSpringContextUtil()
- 类 的构造器io.github.wslxm.springbootplus2.starter.redis.util.
RedisSpringContextUtil
redisTemplate(RedisConnectionFactory)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.config.
RedisConfig
缓存对象 bean 配置
RedisUtil
-
io.github.wslxm.springbootplus2.starter.redis.util
中的类
RedisUtil()
- 类 的构造器io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
S
sAdd(String, Object...)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
将数据放入set缓存
sAdd(String, long, Object...)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
将set数据放入缓存
set(String, Object)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
普通缓存放入
set(String, Object, long)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
普通缓存放入并设置时间
setApplicationContext(ApplicationContext)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisSpringContextUtil
sIsMember(String, Object)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
根据value从一个set中查询,是否存在
sMembers(String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
根据key获取Set中的所有值
sRemove(String, Object...)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
移除值为value的
sSize(String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisUtil
获取set缓存的长度
SynchronizedLock
-
io.github.wslxm.springbootplus2.starter.redis.lock.annotation
中的注释类型
分布式锁 ,同Synchronized, 多个jvm 排队执行 适用于代码中需要用到 Synchronized 的方法, 改用 @SynchronizedLock 可让代码在分布式部署环境下实现代码同步
synchronizedLockPoint(ProceedingJoinPoint)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.lock.aspect.
LockAspect
方法锁(synchronized) 如果方法正在被其中一个 jvm正在执行, 下一个执行指定方法的jvm 需等待上一个线程执行完后才能执行)
T
TaskLock
-
io.github.wslxm.springbootplus2.starter.redis.lock.annotation
中的注释类型
指定任务 分布式锁 (多个jvm只有一个jvm执行,其他jvm不执行, 可用于定时任务 ) 适用与 springboot 自带定时任务功能, 在分布式部署时不会出现定时任务重复执行问题 类上 // @Configuration // @EnableScheduling 方法上 // @Scheduled(cron = TaskTest.cron) // @TaskLock(lockKed = "task1", expireTime = 1)
taskLockPoint(ProceedingJoinPoint)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.lock.aspect.
LockAspect
jvm 任务锁 多个jvm的相同方法, 那个jvm先抢锁就谁执行, 其他线程不执行 ---- // 不释放,让其自动过期, 已次来保证定时任务绝对不被重复执行, // 避免定时任务业务代码执行过快, 第二个jvm执行时锁已经被释放的情况发生
U
unLock(String)
- 类 中的方法io.github.wslxm.springbootplus2.starter.redis.util.
RedisLockUtil
释放锁 其实就是将该key删除
C
D
E
F
G
H
I
L
R
S
T
U
跳过导航链接
概览
程序包
类
使用
树
已过时
索引
帮助
上一个
下一个
框架
无框架
所有类
Copyright © 2022. All rights reserved.