Caching method implemented based on OpenResty
The invention relates to the technical field of data processing, in particular to a caching method implemented based on OpenResty, which comprises the following steps of: firstly, constructing a client side and a service side, wherein the service side comprises an OpenResty server, a source server a...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to the technical field of data processing, in particular to a caching method implemented based on OpenResty, which comprises the following steps of: firstly, constructing a client side and a service side, wherein the service side comprises an OpenResty server, a source server and a Redis memory database server, the client side comprises an application program or a browser, and a request of a client side is received through the communication between HTTP/HTTPS and the OpenResty server; the OpenResty server receives a key field in the request extraction request of the client, and determines to return the data cached in the Redis memory database server to the client according to the working state of the source server and the state of the related data in the memory database server; or the OpenResty server sends the request to the back-end source server, and then sends the request result to the client. According to the method, slow change characteristics of information such as user names and |
---|