首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏快乐阿超

    spring caching

    官方文档:https://spring.io/guides/gs/caching/ 引入依赖: <dependency> <groupId>org.springframework.boot</groupId <artifactId>spring-boot-starter-cache</artifactId> </dependency> 准备一个Book类 package com.example.caching Book{" + "isbn='" + isbn + '\'' + ", title='" + title + '\'' + '}'; } } 写个接口 package com.example.caching { Book getByIsbn(String isbn); } 然后是对应的接口实现类,此处模拟从数据库查询Book对象的数据,期间会sleep三秒 package com.example.caching ; } } 我们启动一下项目,发现正常执行,每三秒输出一个Book对象 我们给实现类的获取book方法加一个@Cacheable("books")注解 package com.example.caching

    33120编辑于 2023-02-20
  • 来自专栏全栈程序员必看

    SKISTYLE_flask-caching

    train: ndarray。如果KFold设置shuffle参数是True,是混乱的。

    24810编辑于 2022-11-04
  • 来自专栏Vincent-yuan

    asp.net core 系列之Response caching 之 Distributed caching(3)

    这篇文章讲解分布式缓存,即 Distributed caching in ASP.NET Core Distributed caching in ASP.NET Core 分布式缓存是可以在多个应用服务上共享的缓存 要使用SQL Server分布式缓存,需要引入 Microsoft.AspNetCore.App metapackage 或者 添加 Microsoft.Extensions.Caching.SqlServer Establish distributed caching services (建立分布式服务) 在Startup.ConfigureServices中注册一个IDistributedCache的实现。 然而,大家通常使用 benchmarking来判断the performance characteristics of caching strategies(缓存策略的表现性能)。 参考资料: https://docs.microsoft.com/en-us/aspnet/core/performance/caching/distributed?

    1.2K20发布于 2019-09-11
  • 来自专栏Vincent-yuan

    asp.net core 系列之Reponse caching 之 Response Caching Middleware(4)

    这篇文章介绍 Response Caching Middleware . Response Caching Middleware in ASP.NET Core 通过在ASP.NET Core应用中 配置 Response Caching Middleware ,决定什么时候 三.Options 中间件提供了三个options(选项)来控制resonse caching. ? 五.HTTP headers used by Response Caching Middleware Response caching被中间件使用HTTP headers来配置,下面是一些HTTP头 ? 六.Caching respects request Cache-Control directives 中间件遵守HTTP 1.1 Caching secification(specification

    86810发布于 2019-09-11
  • 来自专栏全栈程序员必看

    Windows Server AppFabric Caching

    3)概念架构图 4)物理架构图 5)特点 Windows Server AppFabric Caching 主要特点有: 1.任何可以被序列化的 CLR 对象都可以通过简单的 Cache 数据储存至缓存,也可在 Web farm 架构下将应用程序数据缓存 ,减少数据库大量读取的负担 9.第一版遵循 cache-aside architecture ( 明确快取, Explicit Caching 6)参考 1.Windows Server AppFabric Caching Concepts https://msdn.microsoft.com/en-us/library/ee790849( /en-us/library/ee790954(v=azure.10).aspx 3.Windows Server AppFabric Caching Logical Architecture Diagram https://msdn.microsoft.com/en-us/library/ee790954(v=azure.10).aspx 4.Windows Server AppFabric Caching

    1K10编辑于 2022-11-03
  • 来自专栏吉吉在这里

    Install ExpressCache for SSD Caching

    To confirm that it is working, you can type “ECCmd -info” and ensure that it starts showing you some caching

    3.3K30发布于 2019-03-01
  • 来自专栏张善友的专栏

    Windows Server AppFabric Caching

    这套 AppFabric Caching 比我用过的 memcached 复杂多了,MSDN有一篇文章进行介绍Introduction to Caching with Windows Server AppFabric Windows Server AppFabric Caching 的体系结构 ? 数据分类 你的应用程序中如果要充分利用AppFabric Caching的功能,很有必要了解通常缓存的数据类型。 AppFabric Caching 基本概念 上面讲的是关于“分布式缓存架构”的基本观念,这里讲的是“开发模型”的基本概念,了解这些概念才能让你在实际利用 AppFabric Caching (Code 内部的 Routing 机制从 Cache2 取得数据,而这些复杂的 Routing 作业全都由 AppFabric Caching 帮你完成。

    1.4K90发布于 2018-01-19
  • 来自专栏sktj

    flask caching缓存(flask 110)

    官方文档:https://pythonhosted.org/Flask-Caching/# 为了尽量减少缓存穿透,同时减少web的响应时间,我们可以针对那些需要一定时间才能获取结果的函数和那些不需要频繁更新的视图函数提供缓存服务 flask_caching插件就是提供这种功能的神器。 flask_caching 安装 pip install Flask-Caching 初始化配置 init.py from flask import Flask from extensions 可以使用config参数添加配置 cache.init_app(app=app,config={'CACHE_TYPE' : 'simple'}) extensions.py from flask_caching has(k):查询是否存在一个键 inc(self, key, delta=1):将键的值加一 dec(self, key, delta=1):将键的值减一 自定义缓存后端 如果flask_caching

    2.6K20发布于 2019-08-21
  • 来自专栏开源部署

    flask扩展 flask-caching

    一、安装 sudo pip install flask-caching 二、创建 from flask_caching <span class

    37810编辑于 2022-09-14
  • 来自专栏一朵灼灼华的博客

    flask插件之使用flask_caching缓存

    安装 pip install Flask-Caching 配置 exts.py from flask_caching import Cache # 缓存 cache = Cache() __init_ BaseCache对象 所有类型的缓存对象都继承自flask框架的BaseCache,它定义了一个使用缓存的标准接口,通过继承BaseCache实现这些接口就可以在flask中方便的集成各种缓存;而flask_caching 查询是否存在一个键 inc(self, key, delta=1):将键的值加一 dec(self, key, delta=1):将键的值减一 参考文档 https://pythonhosted.org/Flask-Caching

    1.1K10编辑于 2022-08-05
  • 来自专栏程序那些事

    Spring MVC 中的http Caching

    Spring MVC 中的http Caching Cache 是HTTP协议中的一个非常重要的功能,使用Cache可以大大提高应用程序的性能,减少数据的网络传输。

    1.3K10发布于 2020-07-08
  • 来自专栏happyJared

    为 Spring Boot 应用添加 Redis Caching

    下面通过简单的示例,展示下如何快速为你的 Spring Boot 应用添加 Redis Caching。 加入依赖 <dependencies> <!

    1.2K00发布于 2019-04-18
  • 来自专栏函数式编程语言及工具

    restapi(9)- caching, akka-http 缓存

    下面就介绍一下akka-http的caching。 akka-http caching 有个依赖: "com.typesafe.akka" %% "akka-http-caching" % akkaHttpVersion, 先从缓存存储结构开始,看看下面的一段缓存结构定义 : import akka.http.scaladsl.util.FastFuture import akka.http.caching.scaladsl.Cache import akka.http.caching.scaladsl.CachingSettings import akka.http.caching.LfuCache val defaultCachingSettings = CachingSettings(sys) val lfuCacheSettings import akka.http.caching.scaladsl.CachingSettings import akka.http.caching.LfuCache import akka.http.scaladsl.server.RequestContext

    80610发布于 2019-11-12
  • 来自专栏技术小讲堂

    使用Donut Caching和Donut Hole Caching在ASP.NET MVC应用中缓存页面何时使用Donut CachingDonut Caching 的Nuget 包Donut Ho

    Donut Caching是缓存除了部分内容以外的整个页面的最好的方式,在它出现之前,我们使用“输出缓存”来缓存整个页面。 Donut Caching 的Nuget 包 使用Donut Caching之前,你需要在Visual studio中使用Nuget安装包,一般直接键入命令安装: install-package MvcDonutCaching "; return View(); } } Donut Hole Caching Donut Hole Caching和Donut Caching刚好相反 何时使用Donut Hole Caching 假设你有一个应用程序,它需要在每个页面里显示产品列表,那么这时以HTML的形式缓存一个产品列表就是很需要的了,Donut Hole Caching就是设计来处理这种情况的啦 categoryService.GetCategories); } 原文地址:http://www.dotnet-tricks.com/Tutorial/mvc/ODJa210113-Donut-Caching-and-Donut-Hole-Caching-with-Asp.Net-MVC

    1.7K50发布于 2018-03-07
  • 来自专栏乐沙弥的世界

    Oracle 表缓存(caching table)的使用

    --************************************ -- Oracle 表缓存(caching table)的使用 --**************************** ******** 1.使用caching table 的原因 在通常的情况下,应用程序访问在cache中的数据块将按照LRU算法来进行处理。 2.解决该问题的方法 设计表为caching table ,即使对该表使用全表访问时,则该表对象的块仍然被放置在LRU列表最近最多使用的尾部(MRU段) 不要过度的使用caching table,以免造成性能下降 通常将caching table 存放在keep buffer pool,缺省的情况下会放置在default buffer pool。 table soctt.emp nocache 使用hint提示符来实现cache select /*+ cache*/ empno,ename from scott.emp; 5.使用例子演示caching

    2.2K40发布于 2018-08-14
  • 来自专栏Java开发必知必会

    【翻译】图解Janusgraph系列-缓存(Janusgraph Caching

    图解Janusgraph系列-缓存(janusgraph caching) 大家好,我是洋仔,JanusGraph图解系列文章,`实时更新`~ 图数据库文章总目录: 整理所有图相关文章,请移步(超链): 洋仔聊编程  >微信公众号:匠心Java  >原文地址:[https://liyangyang.blog.csdn.net/](https://liyangyang.blog.csdn.net/) 1 Caching

    1.2K20编辑于 2022-05-11
  • 来自专栏ADAS性能优化

    A tale of an impossible bug: big.LITTLE and caching

    We removed the caching and it all worked.

    39110编辑于 2022-05-13
  • 来自专栏数据分析与挖掘

    springboot缓存之@Caching和@CacheConfig注解

    @Caching:用于定制复杂的缓存规则 package com.gong.springbootcache.controller; import com.gong.springbootcache.bean.Employee import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Caching PathVariable("id") Integer id){ //employeeService.deleteEmp(id); return "删除成功"; } @Caching

    4K20发布于 2020-08-26
  • 来自专栏长沙架构师同盟

    CodeSpirit.Caching 统一缓存组件指南

    概述 CodeSpirit.Caching 是一个基于 .NET 9 的统一缓存组件,旨在简化分布式系统中的缓存管理。 技术栈 .NET 9.0 Microsoft.Extensions.Caching.Memory (L1缓存) Microsoft.Extensions.Caching.StackExchangeRedis 安装依赖 在项目中添加对 CodeSpirit.Caching 的引用: ounter(lineounter(lineounter(line <ItemGroup> <ProjectReference \Components\CodeSpirit.Caching\CodeSpirit.Caching.csproj" /> </ItemGroup> 2. 减少网络往返次数 避免缓存大对象:考虑只缓存必要的字段 使用压缩:对大对象启用压缩 EnableCompression = true 监控缓存命中率:定期分析并优化缓存策略 总结 CodeSpirit.Caching

    14210编辑于 2025-12-17
  • 来自专栏爱可生开源社区

    技术分享 | MySQL:caching_sha2_password 快速问答

    ---一个报错在使用客户端登录MySQL8.0时,我们经常会遇到下面这个报错:ERROR 2061 (HY000): Authentication plugin 'caching_sha2_password caching_sha2_password 简介caching_sha2_password 是 MySQL 8.0.4 引入的一个新的身份验证插件,它的特点从其命名就可以窥探出一二:sha2_password caching:在 sha256_password 的基础上增加缓存,有缓存的情况下不需要加密连接或 RSA 密钥对,已达到安全和效率并存。 其实上面这个介绍不太容易懂,下面我们以问答方式来揭开 caching_sha2_password 的面纱。Q:要求使用安全连接或使用 RSA 密钥对进行密码交换的未加密连接是什么意思? Q:复制用户使用 caching_sha2_password 插件需要注意什么?

    3.4K31编辑于 2022-06-21
领券