腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Spring
如何将
缓存
和
key
存储
到
Redis
redis
、
spring-cache
我在web上学习了一些教程,使用
redis
设置
Spring
Cache, 我的函数如下所示: @Cacheable(value = "post-single",
key
= "#id", unlesslog.info("get post with id {}", id);} 据我所知,@Cacheable中的值是
缓存
名称,而
key
是该
缓存
名称中的<
浏览 33
提问于2021-01-20
得票数 0
1
回答
Spring
redis
缓存
明码
spring
、
caching
、
redis
我使用
redis
为我的
Spring
应用程序实现了
缓存
。现在,我想运行一个作业,每天将Mysql中的数据同步
到
redis
。但我有个问题,
redis
key
不是人类可读的文本。例如userList2:��在使用
spring
Cache时,
如何将
redis
key
存储
为纯文本?
浏览 0
提问于2018-11-27
得票数 0
1
回答
Spring
Boot
缓存
请求延迟测量
spring-boot
、
logging
、
redis
我正在使用带有
Redis
缓存
的
Spring
Boot 2: implementation 'org.springframework.boot:
spring
-boot-starter-data-
redis
' 值
存储
在带有@Cacheable("
key
")注释的
Redis
中。我需要记录访问
Redis
时的请求时间。有可能吗?
浏览 26
提问于2020-08-24
得票数 2
回答已采纳
1
回答
Spring
(引导)-
redis
缓存
-它需要创建
存储
库吗?
spring-boot
、
spring-data-redis
我想问一个关于
spring
缓存
注释
和
存储
库创建的问题。我在网上看到了一些教程,其中一些使用
缓存
注释,另一些则模拟
缓存
存储
库。(value = 'user',
key
= "#
浏览 0
提问于2018-07-17
得票数 2
1
回答
在使用
Redis
进行
缓存
的应用程序中,
spring
引导
缓存
注释的作用是什么?
java
、
spring
、
caching
、
redis
、
spring-data-redis
在我的
spring
引导应用程序中,为了
缓存
目的,我使用
Redis
作为内存中的数据
存储
。目前,我已经用基本的CRUD功能为实体实现了
Redis
支持,我需要这些实体来
缓存
场景1。但突然间,我发现有很多资源使用额外的
spring
引导
缓存
注释(如@Cachable @CahceEvict )来使用
Redis
场景2实现
缓存
。我监测到,当我们开始在find(params)这样的操作中使用这些注释时,只有第一个方法调用将被发送到<
浏览 2
提问于2021-04-08
得票数 0
3
回答
如何在
Redis
缓存
列表中按元素值进行搜索?
caching
、
search
、
spring-boot
、
redis
、
jedis
我们使用的是
redis
缓存
,下面是我们
存储
的样本数据类型现在我想在来自
Spring
的
redis
项目中进行搜索。例如,我的
Spring
项目类从某个外部客户端"abc“接收一个元素。如何通过值搜索
Redis
列表?如下所示: ListOperations<String, Object> listO
浏览 15
提问于2017-11-13
得票数 3
1
回答
如何从
Redis
缓存
中获取定制值?
java
、
spring-boot
、
redis
我正在用
spring
boot在
Redis
上工作。我是新来的。我陷入了一个问题,我需要从
Redis
缓存
中定制数据。例如,
key
是1,而对象
存储
在
Redis
中 name, DOB,} 我只想从
Redis
中检索其中的两个,例如name
和
age,但是对于给定的键,
Redis
返回完整的对象。我不知道如何克服这个问题,我不能只
缓存
2个必填字段。出
浏览 2
提问于2019-07-25
得票数 0
1
回答
如何为类名添加自定义字符串前缀?
java
、
spring
、
jpa
、
redis
为了实现某种名称空间,我需要在整个
Spring
应用程序中使用静态字符串作为
Redis
JPA
存储
库的键的前缀。我读到过
spring
.cache.
redis
.
key
-prefix配置选项,但它似乎只适用于
缓存
。 如何在JPA
存储
库中获得相同的行为?
浏览 18
提问于2021-09-02
得票数 0
1
回答
如何在Java中实现RedisCache.class来
存储
键值对
java
、
spring
、
spring-boot
、
redis
、
redis-cache
companyUserService; } * {@code null} if the
浏览 16
提问于2022-10-11
得票数 0
1
回答
是否可以使用
redis
使用
Spring
的
缓存
抽象来创建多个
缓存
存储
?
spring
、
caching
、
spring-mvc
、
redis
我正在使用
Spring
开发一个web应用程序,我使用
spring
的
缓存
抽象
和
Redis
来
缓存
我的数据库查询。但我无法使用@Cacheable创建多个
缓存
存储
。String s = atest(1);使用
redis
,s
和
r的值"a“相同。尽管我将这两种方法
缓存
在不同的
缓存
中,但它似乎没有任何效果。但是,当我使用
Spring
浏览 3
提问于2013-08-09
得票数 7
回答已采纳
1
回答
为什么我的
Redis
缓存
不能在我的
Spring
/
Spring
-数据应用程序中工作?
java
、
spring-boot
、
redis
、
spring-data
我在我的
Spring
/
Spring
-数据应用程序中添加一个本地
Redis
缓存
。
缓存
spring
.cache.type=
redis
spring
.
redis
.host=127.0.0.1
spring
.
redis
.host=127.0.0.1@id) { return menuItemRepository.findOne(id)
浏览 2
提问于2021-01-17
得票数 0
回答已采纳
1
回答
我们如何配置
spring
引导应用程序来在
redis
缓存
中
存储
和
检索java集合(如列表
和
日期对象)?
spring-boot
、
redis
、
redis-cache
、
spring-boot-configuration
我们如何配置
spring
引导应用程序来在
redis
缓存
中
存储
和
检索java集合(如列表
和
日期对象)?有人能帮我吗?春季引导中的
Redis
配置,用于
存储
和
检索
存储
在
redis
缓存
中的对象,这些对象可以将列表
和
日期对象作为字段。
浏览 7
提问于2022-03-30
得票数 0
2
回答
如何在
Redis
缓存
中保存网页以提高网站速度?
html
、
caching
、
web
、
redis
、
save
有没有办法将网页HTML保存到
redis
缓存
中,以供进一步使用
和
提高速度性能。
浏览 3
提问于2016-09-01
得票数 2
1
回答
使用
redis
进行
缓存
,但使用什么进行持久性
caching
、
redis
、
persist
我计划使用
redis
作为
缓存
,其中每个键都有一个过期设置,我在
redis
.conf中使用了以下配置:maxmemory-policy allkeys-lru 问题是
如何将
过期的密钥持久
存储
到
另一个数据库当
redis
中有过期的密钥时,另一个数据库应该
存储
过期的密钥。当
Redis
以这种方式作为
缓存
使用时,如果应用程序也需要使用
Redis
作为
存储
,强烈建议创
浏览 1
提问于2013-04-01
得票数 0
回答已采纳
1
回答
Spring
Data Cache +
Redis
:如何避免在序列化的JSON中
存储
类名,这会浪费大量的空间?
java
、
spring
、
redis
、
spring-data
、
spring-cache
我使用
Spring
数据
缓存
,使用
Redis
作为
缓存
管理器。数据
缓存
的例子: @Cacheable(...)因此,IMHO将
存储
像{"hello":"world","@class":"com.my.name.some.package.MyPOJO"}这样的东西。@class: ...部分很长,在
Redis
中浪费了宝贵的内存。此外,应该足够聪明,以认识
到
值类型确实是MyPOJO
浏览 3
提问于2022-01-30
得票数 3
1
回答
Spring
Boot
Redis
多重
缓存
问题
spring-boot
、
redis
、
redis-cache
我有一个简单的春季启动与
redis
应用程序,我正在构建
缓存
3个实体电子邮件,产品
和
国家的主数据。我已经使用了
spring
启动启动依赖项。<dependency> <artifactId>
spring
-boot-starter-data-
redis
spring
.cache.
浏览 5
提问于2022-04-16
得票数 0
回答已采纳
1
回答
删除多个键的
缓存
,而不是
Spring
中的所有
spring-data-redis
、
spring-cache
、
redis-cache
我们是否可以只对选定数目的密钥退出
缓存
,而不删除所有条目:public int deleteByIds
浏览 4
提问于2022-09-07
得票数 0
回答已采纳
1
回答
缓存
对分布式
缓存
的整个响应(
Redis
)
caching
、
asp.net-core
、
redis
、
asp.net-core-mvc
、
asp.net-core-2.0
我很熟悉如何从web应用程序中在
Redis
中
存储
键值对,也熟悉
如何将
页面的部分
缓存
到
Redis
,但我不知道
如何将
整个页面
缓存
到
Redis
。我已经成功地使用了IDistributedCache接口的
Redis
特定实现来将密钥值对
存储
到
Redis
。IDistributedCache实现注入
到
控制器中,然后使用_cache.GetStringAsync()
和</
浏览 1
提问于2018-06-13
得票数 2
2
回答
如何使用Pytest在Django中进行测试
缓存
存储
(
Redis
)?
django
、
caching
、
redis
、
pytest
、
pytest-django
我使用Django 1.11.9
和
django-pytest库来测试我的应用程序。此外,我使用
Redis
作为
缓存
存储
。我的问题是--如何在运行测试之前建立一个测试
缓存
存储
,并使用测试数据来设置它?我想添加一些
key
: value数据
到
测试
缓存
存储
中(在
Redis
中),运行测试,然后删除所有这些测试数据(清除测试
缓存
)。
浏览 1
提问于2018-01-26
得票数 4
回答已采纳
1
回答
无法从使用
spring
RedisTemplate
存储
的javascript中获取
redis
嵌套散列键值。
javascript
、
java
、
node.js
、
spring
、
redis
Redis
值是使用Java
spring
包RedisTemplate填充的。现在我需要在express server中使用这些值。我使用的是npm包:
redis
。 可以检索
到
常规的
redis
键值。例如:const
redis
= require("
redis
"); const client =
redis
.createClient(); 能够通过client.get获得价值 我无法获取
存储
的哈希值它们是使用
浏览 42
提问于2020-03-25
得票数 2
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Spring Boot与Redis 实现 Cache 以及 Session 共享
请详细解释如何使用Aspect和Redis来实现缓存功能
Redis五种基本数据类型、RedisCache、缓存雪崩等
统一缓存帝国 - 实战 Spring Cache
Spring全家桶系列-SpringBoot入门Redis
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券