RedisTemplate details
I. overview of RedisTemplate
1.Redis
Redis is an open source key value database, which runs in memory and is written in C language. Redis is usually used for enterprise development to implement caching. Similar products include Memcache. Memcached, etc.
2.Jedis
Jedis is a Java oriented client officially launched by Redis, which provides man ...
Posted by kdreg on Mon, 25 Oct 2021 17:38:23 -0700
Introduction to microservices reverse proxy, load balancing, Nginx, cache, distributed lock, Redisson, SpringCache
Reverse proxy
In fact, an agent is an intermediary. A and B can be connected directly. A C is inserted in the middle, and C is an intermediary. According to the role of agents, they can be divided into forward agents and reverse agents The forward proxy is the client proxy, the proxy client, and the server does not know the client that actuall ...
Posted by nickvd on Tue, 19 Oct 2021 22:05:06 -0700
Redis -- distributed cache
What is distributed caching?
In the original application, the cache is usually stored in the JVM of the local application. However, with the trend of project microservicing, after the project is reconstructed in the way of microservice, the cache should be managed and stored by a separate server and deployed in different physical areas to achi ...
Posted by Blockis on Wed, 13 Oct 2021 12:11:08 -0700
How to solve the Redis cache penetration problem in the blind date source code?
Redis is a cache solution that we use a lot in our daily work. Using cache can improve the performance of blind date source code and greatly reduce the pressure on the database. However, improper use will also cause many problems. Next, let's take a look at the cache penetration problem in blind date source code development.
Cache penetration ...
Posted by khurramijaz on Mon, 11 Oct 2021 16:03:45 -0700
2021-10-06 cache in mybatis
8.1 L1 cache
MyBatis has built-in a powerful transactional query caching mechanism, which can be easily configured and customized.
By default, only the local session cache, i.e. L1 cache, is enabled. It only caches the data in a session, i.e. an sqlsession.
Cache invalidation:
Query different things Adding, deleting and modifying may chan ...
Posted by slick101 on Wed, 06 Oct 2021 09:15:00 -0700
Shangsi Valley grain college learning notes 8 -- integrate NUXT foreground page, and redis cache has been integrated
Server side rendering technology NUXT
What is server-side rendering
Server side rendering, also known as SSR (Server Side Render), completes the content of the page on the server side, rather than obtaining data through AJAX on the client side.
The advantages of server-side rendering (SSR) are: better SEO, because the search engine crawl ...
Posted by nagrgk on Mon, 04 Oct 2021 13:10:14 -0700
Mybatis Cache Novel
Catalog
Article Directory
Preface
1.Level 1 Cache
1.1.What is a Level 1 Cache
1.2.Test 1-Same SqlSession
1.3. Test 2-Different SqlSession
1.4.Test 3 - Refresh Cache
1.5.summary
2.Secondary Cache
2.1.What is a secondary cache
2.2.Configure Secondary Cache
2.2.1.Global Switch
2.2.2.Separate off
2.2.3.Code Configuration
2.2.4.Detail ...
Posted by angershallreign on Sun, 26 Sep 2021 10:19:44 -0700
Spring Cache cache details
preface
Spring's cache cache is similar to java's JDBC. It defines a set of specifications. Third party caching needs to implement this set of specifications in order to use the caching function through the Spring API. The core interfaces of this specification are CacheManager and cache. CacheMananger is the entry to get the cache. Cache is an ...
Posted by lives4him06 on Mon, 20 Sep 2021 05:33:31 -0700
Principles and solutions of Redis cache penetration, cache breakdown and cache avalanche
1, Preface:
In the era of big data, the concurrency of network requests leads to huge database I/O overhead. Therefore, in order to alleviate the pressure of the database, caching technology is essential. Among them, redis is basically one of the server's caching services. Although caching technology is very easy to use, there will be a variet ...
Posted by davidjwest on Fri, 17 Sep 2021 15:29:23 -0700
OkHttp3 source code, detailed cache strategy, worship
//If the current cache does not meet the requirements, close it
if (cacheCandidate != null && cacheResponse == null) {
closeQuietly(cacheCandidate.body()); // The cache candidate wasn't applicable. Close it.
}
// If the network cannot be used and there is no qualified cache, a 504 error will be thrown directly
if (networkReques ...
Posted by ozman26 on Mon, 06 Sep 2021 14:08:08 -0700