Java项目集成Redis序列化工具——处理Java对象
发布时间
阅读量:
阅读量
目标:达成将字符串类型数据存储至redis的操作,且所处理字符为非二进制形式。
操作java对象
1、准备java对象
2、redis存储工具
package com.example.springbootsecurity.utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.BoundSetOperations;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.Component;
import java.util.*;
imp
全部评论 (0)
还没有任何评论哟~
