类 SaAloneRedisInject
java.lang.Object
cn.dev33.satoken.dao.alone.SaAloneRedisInject
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware
@Configuration
public class SaAloneRedisInject
extends Object
implements org.springframework.context.EnvironmentAware
为 SaToken 单独设置 Redis 连接信息,使权限缓存与业务缓存分离
使用方式:在引入 sa-token redis 集成相关包的前提下,继续引入当前依赖
注意事项:目前本依赖仅对以下插件有 Redis 分离效果:
sa-token-redis-template
sa-token-redis-template-jdk-serializer
- 从以下版本开始:
- 1.21.0
- 作者:
- click33
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.boot.autoconfigure.data.redis.RedisProperties骗过编辑器,增加配置文件代码提示voidsetEnvironment(org.springframework.core.env.Environment environment) 开始注入
-
字段详细资料
-
ALONE_PREFIX
配置信息的前缀- 另请参阅:
-
saTokenDao
Sa-Token 持久层接口
-
-
构造器详细资料
-
SaAloneRedisInject
public SaAloneRedisInject()
-
-
方法详细资料
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) 开始注入- 指定者:
setEnvironment在接口中org.springframework.context.EnvironmentAware
-
getSaAloneRedisConfig
@ConfigurationProperties(prefix="sa-token.alone-redis") public org.springframework.boot.autoconfigure.data.redis.RedisProperties getSaAloneRedisConfig()骗过编辑器,增加配置文件代码提示- 返回:
- 配置对象
-