DEV Community 👩‍💻👨‍💻

brlikhon
brlikhon

Posted on

Caching Web and Databases Part-1

Caching
Let's understand caching with an example, we need to go to store to buy necessary things which is 30 minutes away from home and but usually we buy a lot of things and stoke them. For frequent uses when we need them we don't need to travel 30 minutes to store to buy it again. Here we are doing caching using our home as a temporary storage for frequent access.
Home --> Store (30 minutes)
Home --> Stocked Items (2 minutes)
Now, in technical term when we keep some data in temporary storage so that quickly we can retrieve it for frequent uses. There can be certain types of data that can be cached and few of the examples include frequently accessed data the static data and the data that requires quite slow and expensive queries. I will be discussing about the caching of web session state and the databases let's start with the database caching.

I have a special offer for you to enjoy some summer savings - a $500 credit to play with Redis Enterprise this summer. You can redeem this coupon for any paid plan!
Follow these steps to use the coupon. Terms and conditions apply*:
Register or Login to the app
Add a payment method: Billing and Payments > Payment methods
Add a payment method: Billing and Payments > Credits >Use coupon SUMMER500
Create any paid subscription
Use code SUMMER500

Terms and conditions:

Offer expires July 31, 2022
Use with a new subscription only
Cannot combine with any other coupon offer
Must use all $500 in two months
Image description

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.