一. 前言其实本人我也不是很了解redis,通过写文章的过程中,我也学习一下redis。以下是redis的部分相关资料,大家可以了解一下。redis的创始者:Salvatore Sanfilippo,大佬的网名:antirezredis官网:https://redis.io/最后送上大佬的照片一张:居然还有点帅,真的是不让人活了。二. 为什么要使用redis(缓存)?1. 高性能当有一个查询接口,
package com.jyc.common.core.redis;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.BoundSetOpe ...
转载 2021-10-27 11:01:00
1129阅读
2评论
import org.springframework.data.geo.Distance; import org.springframework.data.geo.Point; import org.springframework.data.redis.core.GeoOperations; imp
原创 2021-06-02 20:01:36
362阅读
Redis引入jar包 Redis工具package net.wwwyibu.filter;import java.io.IOException;import java.net.InetAddress;import java.net.UnknownHostException;import java.util.ArrayList;import java.util.HashMap;import ja
原创 2021-05-25 08:33:39
395阅读
# Redis 工具实现流程 ## 步骤概览 以下是实现 Redis 工具的大致流程: | 步骤 | 描述 | | ---- | ---- | | 1 | 引入 Redis 相关依赖 | | 2 | 配置 Redis 连接信息 | | 3 | 编写 RedisUtils 工具 | | 4 | 实现 Redis 连接和关闭方法 | | 5 | 实现常用操作方法 | ## 代码实现 #
原创 2023-07-22 16:14:24
28阅读
8
原创 2022-09-06 05:59:53
109阅读
packagecn.com.amway.msgcenter.console.util;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.data.redis.core.RedisTemplate;importorg.springframework.data.redis.cor
原创 2020-11-13 14:10:01
1362阅读
package com.qx.utils;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.BoundS
原创 2022-10-20 10:27:26
33阅读
package com.wys.mall.common.redis;import com.google.gson.Gson;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.dao.DataAccessException;import org.springframewor
原创 2023-02-14 09:03:23
66阅读
importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.data.redis.core.RedisTemplate;importorg.springframework.data.redis.core.StringRedisTemplate;importorg.springframe
原创 2020-10-28 15:23:17
573阅读
package com.infinitus.opp.meeting.utils; import com.alibaba.nacos.shaded.com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.springframework.dao.DataAccessException; import o
原创 2023-08-16 20:46:17
179阅读
以下给出了两个 Redis 工具,按自己的需求选择即可,基本上包含了日常开发中常用的Redis操作方法/** * @author BNTang */@Slf4j@Componentpublic class RedisUtils {   &nb
原创 2020-11-10 13:35:00
183阅读
【代码】Redis工具
原创 2024-08-01 16:40:10
39阅读
package org.fh.util; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.TimeUnit; import org.springframework.data.redis.core.RedisTemplate; import org.sprin
转载 2023-10-27 00:43:32
53阅读
# 使用Hutool操作JSON字段属性 在现代Java开发中,JSON格式的数据交换变得越来越普遍。在这篇文章中,我们将采用一个名为Hutool的Java工具库来操作JSON数据。Hutool提供了丰富的工具,可以简化我们的开发流程。本文将从基本概念开始,并通过一系列步骤,引导您如何实现Java中Hutool操作JSON字段属性。 ## 流程概述 在实现操作JSON字段属性的功能之前,我
原创 7月前
279阅读
座右铭:天行健,君子以自强不息;地势坤,君子以厚德载物。每个人都有惰性,但不断学习新东西是好好生活的根本,共勉!文章均为学习整理笔记,分享记录为主,如有错误请指正,共同学习进步。 文章目录1. 依赖2.配置文件3.配置4.工具 1. 依赖<!-- redisTemplate --> <dependency> <groupI
转载 2023-09-28 18:32:03
90阅读
import com.sun.istack.internal.NotNull; import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springfr
转载 2024-06-11 12:28:11
60阅读
利用Jedis连接池操作Redis工具:package com.ly.provider.sys.redis.utils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import redis.clients.jedi
JedisPool1、JedisPool导入相关依赖:commons-pool2-2.3.jarjedis-2.7.0.jar1、JedisPoolpackage com.yj.test.javaBases.testJedis;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import redis.clients...
转载 2021-06-04 14:50:45
897阅读
package com.jason; import com.alibaba.fastjson.JSON; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFact
原创 2021-07-17 12:50:53
795阅读
  • 1
  • 2
  • 3
  • 4
  • 5