How to cache node.js with high concurrency?

how to cache node.js with high concurrency? Is there any example of how node.js,javascript caches if you want to turn 5 requests into one?

Mar.23,2022

if you want to know node.js how to cache, for example, use EventEmitter to store a queue in memory, do not execute the same logic, and only trigger the event to return the result.
but in fact, we often only care about some time-consuming operations, such as sql operations. At this time, we often pay attention not to nodejs itself, but to cache knowledge. Simply using redis to save the results can resist certain concurrency.
of course, caching is not that simple, and there will be all kinds of problems. It is recommended that you first learn about caching. advanced-java

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ead198-47eff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ead198-47eff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?