Unlock instant, AI-driven research and patent intelligence for your innovation.

Configurable local cache refreshing method and a terminal thereof

A local caching and configuration technology, which is applied in other database retrieval, web data retrieval using information identifiers, website content management, etc., can solve the problems of poor flexibility and achieve the effect of improving flexibility

Active Publication Date: 2019-02-15
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF18 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In general, whether it is through zookeeper or other notification methods, the local cache refresh strategy is to refresh all instances uniformly, that is, the existing local cache refresh strategy is less flexible

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Configurable local cache refreshing method and a terminal thereof
  • Configurable local cache refreshing method and a terminal thereof
  • Configurable local cache refreshing method and a terminal thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] Please refer to figure 1 as well as figure 2 , Embodiment 1 of the present invention is:

[0051] A configurable local cache refresh method, including steps:

[0052] S1. Obtain the configuration modification information that needs to be updated to the local cache, and filter out the application instances to be updated that meet the configuration modification information to be updated according to the instance information configuration table;

[0053] S2. Obtain the unique coding field of the application instance to be updated, obtain the protocol, port, domain name and url relative path address of the application instance to be updated in the instance information configuration table according to the unique coding field, assemble the url request address according to the url request information, and pass HTTP calls url request address to complete local memory refresh.

[0054] For this embodiment, since there are multiple configuration contents in each application in...

Embodiment 2

[0055] Please refer to figure 1 as well as figure 2 , the second embodiment of the present invention is:

[0056] On the basis of the first embodiment above, step S1 in this embodiment can be replaced by:

[0057] Obtain the configuration modification information that needs to be updated to the local cache and the application instance to be updated.

[0058] That is, for this embodiment, the application instance to be updated is based on the user's manual selection.

Embodiment 3

[0059] Please refer to image 3 , Embodiment three of the present invention is:

[0060] A configurable local cache refresh terminal 1 includes a memory 2, a processor 3, and a computer program stored in the memory 2 and operable on the processor 3. When the processor 3 executes the computer program, the first embodiment above is implemented. Step S1 and Step S2 of.

[0061] For this embodiment, a configurable local cache refresh terminal 1 is deployed in a cluster mode, and the cluster is composed of multiple application instances, and in this embodiment, each application under the same cluster The example codes are all consistent, so as to realize the expansion of the cluster and improve the throughput of the cluster.

[0062] For each application instance, this embodiment provides a corresponding local memory refresh interface for the external system to call the local memory refresh interface to refresh the cache information of the application instance, that is, refresh t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a configurable local cache refreshing method and a terminal thereof. The method comprises the following steps: obtaining configuration modification information which needs to be updated to the local cache; according to the configuration table of the instance information, screening out application instances to be updated which match the modification information to be configured; according to the configuration table, selecting application instances to be updated. The url request address of the application instance to be updated is obtained according to the instance information configuration table, and the url request address is called to complete the local memory refresh; The invention screens out the application instances that need to be updated through the instanceinformation configuration table, and refreshes the local cache through the url request address, thereby realizing the refresh of only some application instances, but not all the unified refresh in theprior art, thereby improving the flexibility of the system.

Description

technical field [0001] The invention relates to the field of cluster caches, in particular to a configurable local cache refresh method and a terminal. Background technique [0002] When developing a high-concurrency system, there are three sharp tools used to protect the system: caching, degradation, and current limiting. In some of these scenarios, the use of caching can greatly reduce system-related pressure and improve the throughput of system interfaces. At the same time, the cache function is generally divided into the following two situations. One is a clustered unified cache, such as redis cluster cache, Memchche cluster cache, etc., and its related information is placed in the cluster cache uniformly, and each project reads from the cluster cache. fetch information. The other is local cache, which refers to some information that is small in number, occupies less memory resources, and can be directly cached in local memory. [0003] For this case cached in local m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/958G06F16/955
Inventor 刘德建林伟郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More