CN116301578A - Parameter configuration method, device, medium and equipment for cache function - Google Patents
Parameter configuration method, device, medium and equipment for cache function Download PDFInfo
- Publication number
- CN116301578A CN116301578A CN202211543118.XA CN202211543118A CN116301578A CN 116301578 A CN116301578 A CN 116301578A CN 202211543118 A CN202211543118 A CN 202211543118A CN 116301578 A CN116301578 A CN 116301578A
- Authority
- CN
- China
- Prior art keywords
- cache function
- target
- system process
- parameter configuration
- cache
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000026676 system process Effects 0.000 claims abstract description 126
- 230000006870 function Effects 0.000 claims description 288
- 230000005540 biological transmission Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/44—Program or device authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
The embodiment of the application provides a parameter configuration method, device, medium and equipment for a cache function, wherein the method comprises the following steps: receiving a cache function adding request, and analyzing the cache function adding request to obtain a preset identification of a target system process of the cache function to be added; judging whether target cache function parameters corresponding to the preset identification exist or not according to the preset identification; if the target system process exists, adding a cache function for the target system process, acquiring target cache function parameters, and performing parameter configuration operation on the cache function added by the target system process. According to the embodiment of the application, through prestored cache function parameters of different system processes, when an instruction for adding a cache function module to a target system process is received, whether the stored cache function parameters have the target cache function parameters is judged first, and if yes, the target cache function parameters are directly used for carrying out parameter configuration operation on the target system process. And the efficiency of adding the cache function module is improved while the workload of a user is reduced.
Description
Technical Field
The present invention relates to the field of electronic communications technologies, and in particular, to a method, an apparatus, a medium, and a device for configuring parameters for a cache function.
Background
The data buffer module is a memory chip on the hard disk controller, has extremely high access speed, and is a buffer between the internal storage of the hard disk and an external interface. Because the internal data transmission speed of the hard disk is different from the external interface transmission speed, the buffer function is realized in the hard disk. The size and the speed of the buffer memory are important factors directly related to the transmission speed of the hard disk, and the overall performance of the hard disk can be greatly improved. When the hard disk accesses the fragmented data, the data are required to be continuously exchanged between the hard disk and the memory, if the large cache exists, the fragmented data can be temporarily stored in the cache, the load of an external system is reduced, and the data transmission speed is also improved. After the data caching module is added to the system process, a unified data setting, reading and removing method can be provided for DOM elements and JavaScript objects in the system process, basic functions are provided for a queue module, an animation module, a style operation module and an event system in the jQuery, and the system is responsible for maintaining internal data of the modules during operation. At present, when the cache function module is added to different service system processes, different parameters are required to be set according to the different service system processes, so that parameter modification is required when the cache function module is used for realizing the cache function every time, the workload of a user is increased, and meanwhile, the efficiency of adding the cache function module is influenced.
Disclosure of Invention
The embodiment of the application provides a parameter configuration method, a device, a medium and equipment for a cache function, wherein by using the parameter configuration method for the cache function, cache function parameters of different system processes are stored in a database in advance, when an instruction for adding a cache function module for a target system process is received, whether the stored cache function parameters have target cache function parameters corresponding to the target system process or not is firstly judged, and if the target cache function parameters exist, the target cache function parameters stored in advance are directly used for carrying out parameter configuration operation on the target system process. Therefore, the user is not required to manually perform parameter configuration every time the cache function module is used for realizing the cache function, the workload of the user is reduced, and the efficiency of adding the cache function module is improved.
An aspect of the embodiments of the present application provides a parameter configuration method for a cache function, where the parameter configuration method for a cache function includes:
receiving a cache function adding request, and analyzing the cache function adding request to obtain a preset identification of a target system process of a to-be-added cache function;
judging whether a target cache function parameter corresponding to the preset identifier exists in a current database according to the preset identifier;
If the target cache function parameters corresponding to the preset identification exist, adding a cache function for the target system process, and acquiring the target cache function parameters to perform parameter configuration operation on the cache function added by the target system process.
In the method for configuring parameters for a cache function according to the embodiment of the present application, before determining, according to the preset identifier, whether the target cache function parameter corresponding to the preset identifier exists in the current database, the method further includes:
judging whether the target system process has an adding authority for adding a cache function or not;
and if the target system process does not have the adding authority, canceling the cache function adding request.
In the method for configuring parameters for a cache function according to the embodiment of the present application, after the determining whether the target system process has the adding authority for adding the cache function, the method further includes:
if the target system process has the adding authority and the target cache function parameter corresponding to the preset identifier does not exist in the current database, a parameter configuration interface is popped up for a user to perform parameter configuration operation according to the target system process, and the target system process is marked as a first configuration system process.
In the method for configuring parameters for a cache function according to the embodiment of the present application, the method further includes:
and acquiring the cache function parameters of the first configuration system process, binding the cache function parameters of the first configuration system process with a preset identifier, and storing the binding to the database.
In the method for configuring parameters for a cache function according to the embodiment of the present application, the method further includes:
when the fact that the target cache function parameters corresponding to the preset identification exist in the current database is determined, judging whether the target cache parameters are encrypted data or not;
if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key or not;
and when judging that the buffer function adding request contains the decryption key, carrying out decryption operation on the encrypted data by the decryption key.
In the method for configuring parameters for a cache function according to the embodiment of the present application, after the determining whether the cache function addition request includes a decryption key, the method further includes:
and canceling the cache function adding request when judging that the decryption key is not contained in the cache function adding request.
In the method for configuring parameters for a caching function according to the embodiment of the present application, after the decrypting key decrypts the encrypted data, the method further includes:
and acquiring a decryption result of the decryption operation, and canceling the cache function adding request if the decryption result is that the decryption fails.
Correspondingly, another aspect of the embodiments of the present application further provides a parameter configuration device for a cache function, where the parameter configuration device for a cache function includes:
the receiving module is used for receiving a cache function adding request and analyzing the cache function adding request to obtain a preset identification of a target system process of the cache function to be added;
the judging module is used for judging whether the target cache function parameters corresponding to the preset identification exist in the current database according to the preset identification;
and the configuration module is used for adding a cache function to the target system process if the target cache function parameter corresponding to the preset identifier exists, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added by the target system process.
Accordingly, another aspect of the embodiments of the present application further provides a storage medium, where a plurality of instructions are stored, where the instructions are adapted to be loaded by a processor to perform a parameter configuration method for a cache function as described above.
Correspondingly, another aspect of the embodiment of the application also provides a terminal device, which comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the parameter configuration method for the cache function.
The embodiment of the application provides a parameter configuration method, a device, a medium and equipment for a cache function, wherein the method analyzes a cache function adding request to obtain a preset identifier of a target system process of the cache function to be added by receiving the cache function adding request; judging whether a target cache function parameter corresponding to the preset identifier exists in a current database according to the preset identifier; if the target cache function parameters corresponding to the preset identification exist, adding a cache function for the target system process, and acquiring the target cache function parameters to perform parameter configuration operation on the cache function added by the target system process. By means of the parameter configuration method for the cache function, cache function parameters of different system processes are stored in the database in advance, when an instruction for adding a cache function module for a target system process is received, whether the stored cache function parameters have target cache function parameters corresponding to the target system process or not is judged first, and if yes, the target cache function parameters stored in advance are directly used for carrying out parameter configuration operation on the target system process. Therefore, the user is not required to manually perform parameter configuration every time the cache function module is used for realizing the cache function, the workload of the user is reduced, and the efficiency of adding the cache function module is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a parameter configuration method for a cache function according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a parameter configuration device for a caching function according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of a parameter configuration device for a caching function according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be within the scope of the present application based on the embodiments herein.
It should be noted that the following is a simple description of the background of the present solution:
the technical problem that when the cache function module is added to different service system processes at present, different parameters are required to be set according to the different service system processes, so that parameter modification is required when the cache function module is used for realizing the cache function each time, the workload of a user is increased, and meanwhile the efficiency of adding the cache function module is influenced is mainly solved. It can be understood that the data buffer module is a memory chip on the hard disk controller, has extremely fast access speed, and is a buffer between the internal storage of the hard disk and the external interface. Because the internal data transmission speed of the hard disk is different from the external interface transmission speed, the buffer function is realized in the hard disk. The size and the speed of the buffer memory are important factors directly related to the transmission speed of the hard disk, and the overall performance of the hard disk can be greatly improved. When the hard disk accesses the fragmented data, the data are required to be continuously exchanged between the hard disk and the memory, if the large cache exists, the fragmented data can be temporarily stored in the cache, the load of an external system is reduced, and the data transmission speed is also improved. After the data caching module is added to the system process, a unified data setting, reading and removing method can be provided for DOM elements and JavaScript objects in the system process, basic functions are provided for a queue module, an animation module, a style operation module and an event system in the jQuery, and the system is responsible for maintaining internal data of the modules during operation. At present, when the cache function module is added to different service system processes, different parameters are required to be set according to the different service system processes, so that parameter modification is required when the cache function module is used for realizing the cache function every time, the workload of a user is increased, and meanwhile, the efficiency of adding the cache function module is influenced.
In order to solve the above technical problems, embodiments of the present application provide a parameter configuration method for a cache function. By means of the parameter configuration method for the cache function, cache function parameters of different system processes are stored in the database in advance, when an instruction for adding a cache function module for a target system process is received, whether the stored cache function parameters have target cache function parameters corresponding to the target system process or not is judged first, and if yes, the target cache function parameters stored in advance are directly used for carrying out parameter configuration operation on the target system process. Therefore, the user is not required to manually perform parameter configuration every time the cache function module is used for realizing the cache function, the workload of the user is reduced, and the efficiency of adding the cache function module is improved.
Referring to fig. 1, fig. 1 is a flowchart of a parameter configuration method for a cache function according to an embodiment of the present application. The parameter configuration method for the cache function is applied to the terminal equipment. Optionally, the terminal device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like. Optionally, the terminal is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, and the like, but is not limited thereto.
In an embodiment, the method may comprise the steps of:
The preset identifier may be an id number or other character strings that enable the electronic device to identify the system process attribute. In this embodiment, it may be determined whether the target system process needs to manually perform parameter configuration and whether the target system process has the addition permission of the cache function module according to the preset identifier by identifying the preset identifier of the target system process included in the cache function addition request.
In this embodiment, by using the parameter configuration method for a cache function provided in the embodiment of the present application, cache function parameters of different system processes are stored in advance in a database, when an instruction for adding a cache function module to a target system process is received, whether there is a target cache function parameter corresponding to the target system process in the stored cache function parameters is first determined, and whether a manual parameter configuration operation sum is required is determined according to a determination result.
In other embodiments, whether the target system process has the cache function module adding authority may be further determined according to the preset identifier. And if the target system process does not have the adding authority, canceling the cache function adding request.
And step 103, if the target cache function parameter corresponding to the preset identifier exists, adding a cache function for the target system process, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added by the target system process.
If the target cache function parameters exist, the target system process is directly subjected to parameter configuration operation by using the target cache function parameters which are stored in advance. Therefore, the user is not required to manually perform parameter configuration every time the cache function module is used for realizing the cache function, the workload of the user is reduced, and the efficiency of adding the cache function module is improved.
In other embodiments, if the target system process has the addition authority and the target cache function parameter corresponding to the preset identifier does not exist in the current database, the parameter configuration interface is popped up for the user to perform parameter configuration operation according to the target system process, and the target system process is marked as the first configuration system process.
The cache function parameters of the first configuration system process are acquired, bound with the preset identifier and then stored in the database, so that the cache function parameters in the database can be expanded.
In some embodiments, when parameter modification is frequently performed on the same cache function module and applied to different system processes, data leakage of the service system may be caused, and data storage security of the service system may be affected. In order to solve the above problem, by setting different encryption information for the cache function parameters of different system processes, the electronic device needs to decrypt the encryption information when calling the cache function parameters to add the cache function module for the system process, and can acquire the cache function parameters after successful decryption. When the fact that the target cache function parameters corresponding to the preset identification exist in the current database is determined, judging whether the target cache parameters are encrypted data or not; if the target cache parameter is the encrypted data, judging whether the cache function adding request contains a decryption secret key or not; and when judging that the buffer function adding request contains the decryption key, carrying out decryption operation on the encrypted data by the decryption key.
In some embodiments, after determining whether the decryption key is included in the cache function add request, the method further comprises the steps of:
and when the cache function adding request does not contain the decryption key, canceling the cache function adding request.
In some embodiments, after decrypting the encrypted data with the decryption key, the method further comprises the steps of:
and obtaining a decryption result of the decryption operation, and if the decryption result is that the decryption fails, canceling the cache function adding request.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
In particular, the present application is not limited by the order of execution of the steps described, and certain steps may be performed in other orders or concurrently without conflict.
As can be seen from the above, the parameter configuration method for a cache function provided in the embodiment of the present application analyzes a cache function adding request to obtain a preset identifier of a target system process to which the cache function is to be added by receiving the cache function adding request; judging whether a target cache function parameter corresponding to the preset identifier exists in a current database according to the preset identifier; if the target cache function parameters corresponding to the preset identification exist, adding a cache function for the target system process, and acquiring the target cache function parameters to perform parameter configuration operation on the cache function added by the target system process. By means of the parameter configuration method for the cache function, cache function parameters of different system processes are stored in the database in advance, when an instruction for adding a cache function module for a target system process is received, whether the stored cache function parameters have target cache function parameters corresponding to the target system process or not is judged first, and if yes, the target cache function parameters stored in advance are directly used for carrying out parameter configuration operation on the target system process. Therefore, the user is not required to manually perform parameter configuration every time the cache function module is used for realizing the cache function, the workload of the user is reduced, and the efficiency of adding the cache function module is improved.
The embodiment of the application also provides a parameter configuration device for the cache function, which can be integrated in the terminal equipment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a parameter configuration device for a cache function according to an embodiment of the present application. The parameter configuration means 30 for the caching function may comprise:
the request receiving module 31 is configured to receive a cache function adding request, and parse the cache function adding request to obtain a preset identifier of a target system process to which a cache function is to be added;
a first judging module 32, configured to judge whether a target cache function parameter corresponding to the preset identifier exists in the current database according to the preset identifier;
and the parameter configuration module 33 is configured to add a cache function to the target system process if there is a target cache function parameter corresponding to the preset identifier, and obtain the target cache function parameter to perform parameter configuration operation on the cache function added by the target system process.
In some embodiments, the apparatus further includes a second determining module configured to determine whether the target system process has an add permission to add a cache function; and if the target system process does not have the adding authority, canceling the cache function adding request.
In some embodiments, the device further includes a parameter entry module, configured to, if the target system process has the addition permission and there is no target cache function parameter corresponding to the preset identifier in the current database, pop up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process, and mark the target system process as a first configuration system process.
In some embodiments, the device further includes a storage module, configured to obtain a cache function parameter of the first configuration system process, bind the cache function parameter of the first configuration system process with a preset identifier, and store the bound cache function parameter to the database.
In some embodiments, the apparatus further includes a decryption module, configured to determine, when it is determined that there is a target cache function parameter corresponding to the preset identifier in the current database, whether the target cache parameter is encrypted data; if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key or not; and when judging that the buffer function adding request contains the decryption key, carrying out decryption operation on the encrypted data by the decryption key.
In some embodiments, the apparatus further includes a third determining module configured to cancel the request for adding the cache function when it is determined that the decryption key is not included in the request for adding the cache function.
In some embodiments, the apparatus further includes a fourth determining module, configured to obtain a decryption result of the decryption operation, and cancel the request for adding the cache function if the decryption result is a decryption failure.
In specific implementation, each module may be implemented as a separate entity, or may be combined arbitrarily and implemented as the same entity or several entities.
As can be seen from the above, the parameter configuration device 30 for a cache function provided in the embodiments of the present application, where the request receiving module 31 is configured to receive a cache function adding request, and analyze the cache function adding request to obtain a preset identifier of a target system process to which the cache function is to be added; the first judging module 32 is configured to judge whether a target cache function parameter corresponding to the preset identifier exists in the current database according to the preset identifier; the parameter configuration module 33 is configured to add a cache function to the target system process if there is a target cache function parameter corresponding to the preset identifier, and obtain the target cache function parameter to perform a parameter configuration operation on the cache function added by the target system process.
Referring to fig. 3, fig. 3 is another schematic structural diagram of a parameter configuration device for a cache function according to an embodiment of the present application, where the parameter configuration device for a cache function 30 includes a memory 120, one or more processors 180, and one or more application programs, where the one or more application programs are stored in the memory 120 and configured to be executed by the processors 180; the processor 180 may include a request receiving module 31, a first determining module 32, and a parameter configuration module 33. For example, the structures and connection relationships of the above respective components may be as follows:
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the device and processes data by running or executing application programs stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the device. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, user interfaces, application programs, and the like.
In particular, in this embodiment, the processor 180 loads executable codes corresponding to the processes of one or more application programs into the memory 120 according to the following instructions, and the processor 180 executes the application programs stored in the memory 120, so as to implement various functions:
a request receiving instruction is used for receiving a cache function adding request, and analyzing the cache function adding request to obtain a preset identification of a target system process of a to-be-added cache function;
the first judging instruction is used for judging whether the target cache function parameters corresponding to the preset identification exist in the current database according to the preset identification;
And the parameter configuration instruction is used for adding a cache function to the target system process if the target cache function parameter corresponding to the preset identifier exists, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added by the target system process.
In some embodiments, the program further includes a second determining instruction configured to determine whether the target system process has an add permission to add a cache function; and if the target system process does not have the adding authority, canceling the cache function adding request.
In some embodiments, the program further includes a parameter entry instruction, configured to, if the target system process has the addition permission and there is no target cache function parameter corresponding to the preset identifier in the current database, pop up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process, and mark the target system process as a first configuration system process.
In some embodiments, the program further includes a storage instruction, configured to obtain a cache function parameter of the first configuration system process, bind the cache function parameter of the first configuration system process with a preset identifier, and store the bound cache function parameter to the database.
In some embodiments, the program further includes a decryption instruction, configured to determine, when it is determined that the target cache function parameter corresponding to the preset identifier exists in the current database, whether the target cache parameter is encrypted data; if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key or not; and when judging that the buffer function adding request contains the decryption key, carrying out decryption operation on the encrypted data by the decryption key.
In some embodiments, the program further includes third determining instructions for canceling the cache function addition request when it is determined that the decryption key is not included in the cache function addition request.
In some embodiments, the program further includes a fourth determining instruction, configured to obtain a decryption result of the decryption operation, and cancel the request for adding the cache function if the decryption result is a decryption failure.
The embodiment of the application also provides terminal equipment. The terminal equipment can be a server, a smart phone, a computer, a tablet personal computer and the like.
Referring to fig. 4, fig. 4 shows a schematic structural diagram of a terminal device provided in an embodiment of the present application, where the terminal device may be used to implement the parameter configuration method for the buffering function provided in the foregoing embodiment. The terminal device 1200 may be a smart phone or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer readable storage mediums, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. It will be appreciated by those skilled in the art that the configuration of the terminal device 1200 shown in fig. 4 does not constitute a limitation of the terminal device 1200, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components. Wherein:
the RF circuit 110 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 110 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the parameter configuration method for the cache function in the above embodiment, and the processor 180 executes various function applications and data processing by running the software programs and modules stored in the memory 120, so that the vibration reminding mode can be automatically selected to update data according to the current scene where the terminal device is located, thereby not only ensuring that the scenes such as a conference are not disturbed, but also ensuring that the user can perceive an incoming call, and improving the intelligence of the terminal device. Memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory remotely located relative to processor 180, which may be connected to terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may comprise a touch sensitive surface 131 and other input devices 132. The touch sensitive surface 131, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch sensitive surface 131 or thereabout by any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a pre-set program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch control detection device detects the touch control direction of a user, detects signals brought by touch control operation and transmits the signals to the touch control controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch coordinates, sends the touch coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. In addition to the touch-sensitive surface 131, the input unit 130 may also comprise other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal device 1200, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and after the touch-sensitive surface 131 detects a touch operation thereon or thereabout, the touch-sensitive surface is transferred to the processor 180 to determine a type of touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in fig. 4 the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 131 may be integrated with the display panel 141 to implement the input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal device 1200 are not described in detail herein.
Terminal device 1200 may facilitate user email, web browsing, streaming media access, etc. via a transmission module 170 (e.g., wi-Fi module) that provides wireless broadband internet access to the user. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope of not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 1200 also includes a power supply 190 that provides power to the various components, and in some embodiments, may be logically coupled to the processor 180 via a power management system to perform functions such as managing discharge, and managing power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (such as a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. In particular, in the present embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, the one or more programs include instructions for:
a request receiving instruction is used for receiving a cache function adding request, and analyzing the cache function adding request to obtain a preset identification of a target system process of a to-be-added cache function;
The first judging instruction is used for judging whether the target cache function parameters corresponding to the preset identification exist in the current database according to the preset identification;
and the parameter configuration instruction is used for adding a cache function to the target system process if the target cache function parameter corresponding to the preset identifier exists, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added by the target system process.
In some embodiments, the program further includes a second determining instruction configured to determine whether the target system process has an add permission to add a cache function; and if the target system process does not have the adding authority, canceling the cache function adding request.
In some embodiments, the program further includes a parameter entry instruction, configured to, if the target system process has the addition permission and there is no target cache function parameter corresponding to the preset identifier in the current database, pop up a parameter configuration interface for a user to perform parameter configuration operation according to the target system process, and mark the target system process as a first configuration system process.
In some embodiments, the program further includes a storage instruction, configured to obtain a cache function parameter of the first configuration system process, bind the cache function parameter of the first configuration system process with a preset identifier, and store the bound cache function parameter to the database.
In some embodiments, the program further includes a decryption instruction, configured to determine, when it is determined that the target cache function parameter corresponding to the preset identifier exists in the current database, whether the target cache parameter is encrypted data; if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key or not; and when judging that the buffer function adding request contains the decryption key, carrying out decryption operation on the encrypted data by the decryption key.
In some embodiments, the program further includes third determining instructions for canceling the cache function addition request when it is determined that the decryption key is not included in the cache function addition request.
In some embodiments, the program further includes a fourth determining instruction, configured to obtain a decryption result of the decryption operation, and cancel the request for adding the cache function if the decryption result is a decryption failure.
The embodiment of the application also provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer executes the parameter configuration method for the cache function according to any one of the embodiments.
It should be noted that, for the parameter configuration method for a cache function described in the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the parameter configuration method for a cache function described in the embodiments of the present application may be implemented by controlling related hardware by using a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and the execution process may include the flow of the embodiment of the parameter configuration method for a cache function as described in the embodiments of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), or the like.
For the parameter configuration device for the cache function in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist separately and physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The above describes the parameter configuration method, device, medium and equipment for the cache function provided in the embodiments of the present application in detail. The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.
Claims (10)
1. A method for configuring parameters for a cache function, comprising:
receiving a cache function adding request, and analyzing the cache function adding request to obtain a preset identification of a target system process of a to-be-added cache function;
judging whether a target cache function parameter corresponding to the preset identifier exists in a current database according to the preset identifier;
if the target cache function parameters corresponding to the preset identification exist, adding a cache function for the target system process, and acquiring the target cache function parameters to perform parameter configuration operation on the cache function added by the target system process.
2. The method for configuring parameters according to claim 1, wherein before said determining, according to the preset identifier, whether the target cache function parameter corresponding to the preset identifier exists in the current database, the method further comprises:
judging whether the target system process has an adding authority for adding a cache function or not;
and if the target system process does not have the adding authority, canceling the cache function adding request.
3. The parameter configuration method according to claim 2, wherein after said determining whether the target system process has an addition authority to add a cache function, the method further comprises:
if the target system process has the adding authority and the target cache function parameter corresponding to the preset identifier does not exist in the current database, a parameter configuration interface is popped up for a user to perform parameter configuration operation according to the target system process, and the target system process is marked as a first configuration system process.
4. A method of configuring parameters as claimed in claim 3, wherein the method further comprises:
and acquiring the cache function parameters of the first configuration system process, binding the cache function parameters of the first configuration system process with a preset identifier, and storing the binding to the database.
5. The parameter configuration method according to claim 1, wherein the method further comprises:
when the fact that the target cache function parameters corresponding to the preset identification exist in the current database is determined, judging whether the target cache parameters are encrypted data or not;
if the target cache parameter is encrypted data, judging whether the cache function adding request contains a decryption key or not;
and when judging that the buffer function adding request contains the decryption key, carrying out decryption operation on the encrypted data by the decryption key.
6. The parameter configuration method according to claim 5, wherein after said determining whether the decryption key is included in the cache function addition request, the method further comprises:
and canceling the cache function adding request when judging that the decryption key is not contained in the cache function adding request.
7. The parameter configuration method according to claim 5, wherein after said decrypting the encrypted data with the decrypting key, the method further comprises:
and acquiring a decryption result of the decryption operation, and canceling the cache function adding request if the decryption result is that the decryption fails.
8. A parameter configuration apparatus for a cache function, characterized in that the parameter configuration apparatus for a cache function comprises:
the request receiving module is used for receiving a cache function adding request and analyzing the cache function adding request to obtain a preset identification of a target system process of the cache function to be added;
the first judging module is used for judging whether target cache function parameters corresponding to the preset identification exist in the current database according to the preset identification;
and the parameter configuration module is used for adding a cache function to the target system process if the target cache function parameter corresponding to the preset identifier exists, and acquiring the target cache function parameter to perform parameter configuration operation on the cache function added by the target system process.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the parameter configuration method for a caching function of any one of claims 1 to 7.
10. A terminal device comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the parameter configuration method for a cache function of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211543118.XA CN116301578A (en) | 2022-12-02 | 2022-12-02 | Parameter configuration method, device, medium and equipment for cache function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211543118.XA CN116301578A (en) | 2022-12-02 | 2022-12-02 | Parameter configuration method, device, medium and equipment for cache function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116301578A true CN116301578A (en) | 2023-06-23 |
Family
ID=86817383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211543118.XA Pending CN116301578A (en) | 2022-12-02 | 2022-12-02 | Parameter configuration method, device, medium and equipment for cache function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116301578A (en) |
-
2022
- 2022-12-02 CN CN202211543118.XA patent/CN116301578A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150163232A1 (en) | Method, device and system for detecting malware in a mobile terminal | |
CN104852885B (en) | Method, device and system for verifying verification code | |
CN108156508B (en) | Barrage information processing method and device, mobile terminal, server and system | |
CN108270757B (en) | User account switching method, device, client and system | |
WO2015003636A1 (en) | Method and device for interception of page elements | |
CN111752688B (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN109145182B (en) | Data acquisition method and device, computer equipment and system | |
CN106454953B (en) | Flow control method, device and terminal | |
CN114338770B (en) | Cross-blockchain data processing method and device, storage medium and terminal equipment | |
CN115828845A (en) | Multimedia data viewing method, device, medium and equipment | |
CN115589432A (en) | Message push management method, device, medium and equipment | |
US9633227B2 (en) | Method, apparatus, and system of detecting unauthorized data modification | |
CN110856173B (en) | Network access method and device and electronic equipment | |
CN104134044B (en) | A kind of detection method, device and system of Information Security | |
CN116301578A (en) | Parameter configuration method, device, medium and equipment for cache function | |
CN110955468A (en) | Method and device for calling operation entrance and electronic equipment | |
CN116582585B (en) | Message pushing method, device, medium and equipment | |
CN115757506A (en) | Data processing method, device, medium and equipment | |
CN113742703B (en) | Application program management and control method and device, electronic equipment and storage medium | |
CN115237317B (en) | Data display method and device, electronic equipment and storage medium | |
CN111182141B (en) | Method, device and storage medium for acquiring state of terminal device | |
CN117407010A (en) | Software upgrading method, device, medium and equipment | |
CN117406900A (en) | Application window control method, device, medium and equipment | |
CN117116177A (en) | Application method and device of reading display mode, electronic equipment and storage medium | |
CN116382776A (en) | Cross-platform API migration method, device, medium and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |