org.macrocloud.kernel.jwt.serializer.JwtRedisKeySerializer Maven / Gradle / Ivy
package org.macrocloud.kernel.jwt.serializer;
import org.springframework.cache.interceptor.SimpleKey;
import org.springframework.core.convert.ConversionService;
import org.springframework.core.convert.support.DefaultConversionService;
import org.springframework.data.redis.serializer.RedisSerializer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Objects;
/**
* 将redis key序列化为字符串
*
*
* spring cache中的简单基本类型直接使用 StringRedisSerializer 会有问题
*
*
* @author macro
*/
public class JwtRedisKeySerializer implements RedisSerializer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy