hibernate Level 2 Cache
1. What kind of data needs to be cached
1. Data rarely modified 2. Less important data, allowing occasional concurrent data 3. Data that will not be accessed concurrently 4. Reference data refers to constant data that provides reference for use. It has a limited number of instances, and its instances are referenced by instances of many othe ...
Posted by albatros21 on Wed, 20 Oct 2021 14:05:01 -0700
Caffeine: the king of local cache performance
preface
With the rapid development of the Internet, more and more websites and apps appear on the market. We judge whether a software is easy to use, and user experience is an important measure. For example, we often use wechat, it takes more than ten seconds to open a page, and it takes a few minutes for the other party to receive a voice. I ...
Posted by MrSheen on Sat, 13 Jun 2020 21:29:50 -0700
shiro introduction and use
1, shiro internal structure
1. Components contained in shiro
shiro mainly includes Authenticator, authorizer, session manager, encryption, remember me and cache manager
2. Introduction to components of shiro
Subject: the subject, which can be understood as the user interacting with the application, contains all the information of the us ...
Posted by MrSheen on Fri, 15 May 2020 01:50:42 -0700
MyBatis is that simple
0. Introduction to MyBatis
1) MyBatis is an open source Apache project iBatis, which was migrated to Google Code by Apache Software Foundation in June 2010. As the development team moved to Google Code, iBatis 3.x was officially renamed MyBatis and the code was migrated to Github in November 2013
2) The term iBatis comes from a combination of ...
Posted by nsantos on Fri, 14 Feb 2020 10:12:52 -0800
MyBatis 07-Dynamic SQL-Caching Mechanism-Reverse Engineering-Paging Plug-in for Java Framework
MyBatis
You are studying on the first day of the New Year!Don't learn what to do, fight the landlords... people are not together.Learn, study makes me happy!In addition to the responsibility of poems and distant places, I also want to be responsible, but concubines can not do it. What should I do?What do you say? Why can someone else not do it ...
Posted by smith.james0 on Fri, 24 Jan 2020 22:45:11 -0800
springboot integrated J2Cache
J2Cache is a two-level caching framework currently being used by OSChina. First level cache usage Ehcache , second level cache uses Redis . Because a large number of cache reads will cause L2 network to become the bottleneck of the whole system, the goal of L1 is to reduce the number of L2 reads. This caching framework is mainly used in ...
Posted by yuan on Sun, 03 Nov 2019 11:52:51 -0800
MyBatis Notes - EhCache Level 2 Cache
Links to the original text: https://my.oschina.net/u/2400661/blog/596247
introduce
ehcache is a distributed caching framework.
In order to improve system concurrency, our ...
Posted by jstarkey on Mon, 07 Oct 2019 10:05:51 -0700
Shiro+ehcache Configuration Cache Authentication Information and Authorization Information
<bean id="securityManager" class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
<property name="realm" ref="userRealm"/>
<property name="cacheManager" ref="ehCacheManager"/>
</bean>
<bean id="ehCacheManager" class="org.apache.shiro.cache.ehcache.EhCach ...
Posted by nigeledge on Mon, 30 Sep 2019 07:21:24 -0700
Spring Boot Data Cache
We know that the bottleneck of a program is the database. We also know that the speed of memory is much faster than that of hard disk. When we need to retrieve the same data repeatedly, we request database or remote service again and again, which leads to a large amount of time spent on database query or remote method invocation, resulting in d ...
Posted by $SuperString on Wed, 05 Jun 2019 15:41:48 -0700
Key Generation of ehcache-spring-annotations Cache
pom.xml
<!-- ehcache -->
<dependency>
<groupId>com.googlecode.ehcache-spring-annotations</groupId>
<artifactId>ehcache-spring-annotations</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
& ...
Posted by satyricon on Tue, 21 May 2019 16:39:49 -0700