Simple UDP Server and Client
Jan 6, 2023
Simple TCP Server and Client - Improved
Dec 30, 2022
Simple TCP Server and Client
Dec 29, 2022
Getting Started with Socket Programming
Dec 27, 2022
Introduction to LFU Cache

Introduction

LFU (Least Frequently Used) Cache Algorithm is a common cache management algorithm. Its basic idea is to eliminate the least frequently used data in the cache when the cache is full. This can effectively ensure that the data stored in the cache is as useful as possible, thereby improving the hit rate of the cache.

Application Scenatio

image

(Source from Oracle)

The cache proxy is used to optimize network utilization and improve the response speed of the service by caching hot static files in the limited storage resources at cache server. The cost of implementation should be as small as possible to ensure that the proxy can work normally under high load.

Dec 21, 2022
Introduction to LRU Cache

Introduction to LRU Cache

What is Cache?

Generally Definition The cache is way used to store frequently accessed data or instruction in a location for faster access by reducing the amount of expensive operators. it allows the processor to access data and instructions more quickly, which can greatly improve the performance of the system.

Special Example For example, the CPU cache is a small amount of fast memory that the CPU can access more quickly than the main memory. The CPU can access the cache faster than the main memory because the cache is located on the same chip as the CPU. The cache is used to store the data and instructions that the CPU is likely to use next.

Dec 19, 2022
About

He said, “One day you’ll leave this world behind, so live a life you will remember.” - The Nights

Hey, it’s Pintaste

A place to share thoughts about programming, tech and life.

Blog Info

About Me

My name is Pintaste,

  • Loving a cup of salted caramel cream cold brew.

  • Have a cute Garfield and “polar bear”.

  • Loving to read Xiuxian novels.

Dec 1, 2022