A configurable caching system and method
A caching system and caching technology, applied in the Internet field, can solve problems such as cache invalidation and achieve the effect of guaranteeing the hit rate
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] See figure 1 , a configurable caching system of the present invention, including a front-end scheduler, a front-end cache server, and a front-end scheduler, here refers to seven-layer application proxy software widely used in web development, including nginx, haproxy, etc. are very efficient For the front-end scheduler, nginx is preferred in the present invention.
[0021] Relevant location rules and embedded script Lua language are configured in the front-end scheduler. The present invention uses embedded script Lua language programming to eliminate possible interference with the cache through url rewriting technology and custom header domain values in the front-end scheduler. factor to maximize the cache hit rate.
[0022] The configurable caching method of the present invention is implemented by the above-mentioned configurable caching system, and includes at least the following steps:
[0023] (1) The front-end scheduler forwards the request, judges the request,...
Embodiment 2
[0047] Taking the login user language version distinction as an example, the present invention is divided into proxy service configuration logic and response matching logic.
[0048] An example of proxy service configuration logic is as follows:
[0049] rewrite / demo.php?test=abc / demo.php last; #Use internal jump to achieve the purpose of modifying url
[0050] set $deflang en; #default value
[0051] set_by_lua $flang'
[0052] local l = ngx.req.get_headers()['Accept-Language']
[0053] return l
[0054] ';
[0055] if ( $flang ~ 'zh' ) {#Browser logic--request header Accept-Language
[0056] set $deflang zh;
[0057]}
[0058] if ( $cookie_deflang ) {#cookie logic --deflang
[0059] set $deflang $cookie_deflang;
[0060]}
[0061] fastcgi_param HTTP_VARY_DEFLANG $deflang; #Generate request header Vary-Deflang.
[0062] The response matching logic is as follows:
[0063] header('Vary: Vary-Deflang').
[0064] The above example only shows the matching and rewritin...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com