Cache
1, Introduction 1. Title Description Title Link: https://leetcode-cn.com/problems/lru-cache/ Use the data structure you master to design and implement a LRU (least recently used) caching mechanism . Implement LRUCache class: LRUCache(int capacity) initializes the LRU cache with a positive integUTF-8...
Posted by madsosterby on Fri, 24 Sep 2021 12:46:40 +0530
MyBatis load policy What is deferred loading? In the actual development process, it is not always necessary to load the user's order information when loading the user's information. This is what we call delayed loading. In one to many, when there is a user, it has 100 orders; When querying userUTF-8...
Posted by lizzyd on Fri, 24 Sep 2021 15:12:18 +0530
1, Usage scenario The role of cache is self-evident, which is to improve query efficiency. Local cache is a way to obtain resources by using space for time. For example, we maintain a ConcurrentMap to realize the simplest local cache, but we need to make some cache strategies, such as cache expUTF-8...
Posted by stemp on Sat, 25 Sep 2021 13:51:17 +0530
Programmed route navigation As we know, generally speaking, a router link label is used to realize route jump. If you don't use it now, you will use programmed routing navigation. Next, in the previous case, we need to click the message button, and then click the button to display the message UTF-8...
Posted by hansman on Sun, 26 Sep 2021 13:14:01 +0530
Memory cache Preamble statement As we know from the above, Glide memory cache is composed of two parts, also known as runtime cache LruCache - MemoryCache cache implementation class is two pictures of screen size created by LruResourceCache when creating Glide It is implemented by LruCache and UTF-8...
Posted by praeses on Mon, 27 Sep 2021 23:46:03 +0530
This paper mainly implements different cache s because there is a similar problem to be implemented in the previous written test, and there are similar training problems on Niuke, so this paper makes a summary;map is used as the key value storage in the cache, which is the fastest when queryinUTF-8...
Posted by woodsy2k on Sun, 03 Oct 2021 05:14:24 +0530
1. In order to improve the system performance, we usually put some data into the cache to speed up access, and the database undertakes the work of data compass. So how do we put what data into the cache? Or what data is more suitable for caching? ① The requirements for timeliness and data consiUTF-8...
Posted by stuartbates on Wed, 06 Oct 2021 06:54:02 +0530
Java from 0 to architect Directory: [Java from 0 to architect] learning record Jedis basic use reference resources: Redis notes Java operations redis (Jedis) Import dependency: redis.clients jedis 3.1.0 JUTF-8...
Posted by AbraCadaver on Wed, 06 Oct 2021 23:25:39 +0530
background In the traditional project architecture, it is basically a web server (Tomcat and database are deployed independently), which monopolizes the server resources. With the increase of the number of users, concurrent reading and writing to the database will increase the access pressure oUTF-8...
Posted by Satabi2 on Fri, 08 Oct 2021 14:26:30 +0530
Look at people. - Glide's LruCache In the field of android, glide is a very excellent picture loading framework. Excellent naturally has excellent reasons. Look at github's star and you will find it very popular. Today, I'm free to take a look at the implementation of LruCache in glide. I stillUTF-8...
Posted by dgnorton on Sat, 09 Oct 2021 15:26:15 +0530