CN112631769A - Local cache management method, device, equipment and medium for APP - Google Patents

Local cache management method, device, equipment and medium for APP Download PDF

Info

Publication number
CN112631769A
CN112631769A CN202011502654.6A CN202011502654A CN112631769A CN 112631769 A CN112631769 A CN 112631769A CN 202011502654 A CN202011502654 A CN 202011502654A CN 112631769 A CN112631769 A CN 112631769A
Authority
CN
China
Prior art keywords
service data
life cycle
management model
cycle management
model
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.)
Granted
Application number
CN202011502654.6A
Other languages
Chinese (zh)
Other versions
CN112631769B (en
Inventor
舒俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lian Intellectual Property Service Center
Shenzhen Rolling Water Technology Co ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011502654.6A priority Critical patent/CN112631769B/en
Publication of CN112631769A publication Critical patent/CN112631769A/en
Application granted granted Critical
Publication of CN112631769B publication Critical patent/CN112631769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals

Abstract

The application relates to the technical field of artificial intelligence, and discloses a local cache management method, device, equipment and medium for APP, wherein the method comprises the following steps: determining a service data life cycle management model identifier corresponding to a service data identifier to be stored from a life cycle management model library according to a target service characteristic identifier of a target service model; storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored and the service data to be stored in a local cache; acquiring a service data operation request, and determining a target service data life cycle management model identifier from a local cache according to a service data identifier to be operated; and operating the service data corresponding to the service data identifier to be operated based on the target service data life cycle management model corresponding to the target service data life cycle management model identifier. Thereby, the back-end service is not required to be requested and the display is refreshed each time the trigger is performed.

Description

Local cache management method, device, equipment and medium for APP
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a method, an apparatus, a device, and a medium for local cache management of an APP.
Background
In order to improve the user experience of the APP, a scheme of performing local data caching on the APP is adopted. The local cache of the APP is firstly displayed when being triggered every time, then asynchronously requests the latest data, if the latest data is updated, the latest data is refreshed and displayed, so that the backend service is frequently requested, the experience of a user is greatly influenced by frequently requesting the backend service, and the request pressure of the background service is increased.
Disclosure of Invention
The main purpose of the present application is to provide a method, an apparatus, a device, and a medium for managing a local cache of an APP, which aim to solve the technical problem that in the prior art, when an APP local cache is triggered at each time, the APP local cache is frequently requested for backend service and refreshed for display by first displaying and then asynchronously requesting the latest number.
In order to achieve the above object, the present application provides a local cache management method for APP, where the method includes:
acquiring a local data storage request sent by a target service model, wherein the local data storage request carries service data to be stored, a service data identifier to be stored and a target service characteristic identifier of the target service model;
searching a service data life cycle management model identification from a life cycle management model library according to the target service characteristic identification of the target service model to obtain a service data life cycle management model identification corresponding to the service data identification to be stored;
storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored and the service data to be stored in a local cache;
acquiring a service data operation request, wherein the service data operation request carries a service data identifier to be operated;
searching a service data life cycle management model identifier from the local cache according to the service data identifier to be operated to obtain a target service data life cycle management model identifier;
acquiring a service data life cycle management model according to the target service data life cycle management model identification to obtain a target service data life cycle management model;
and responding to the service data operation request, and operating the service data corresponding to the service data identifier to be operated based on the target service data life cycle management model.
Further, before the step of searching the service data life cycle management model identifier from the life cycle management model library according to the target service feature identifier of the target service model to obtain the service data life cycle management model identifier corresponding to the service data identifier to be stored, the method further includes:
acquiring a life cycle management model association request;
responding to the association request for acquiring the life cycle management model, and acquiring a service model identifier of the life cycle management model to be generated, a service characteristic identifier of the life cycle management model to be generated and a service data life cycle management model identifier to be associated;
and associating the service data life cycle management model identification to be associated, the service model identification of the life cycle management model to be generated and the service characteristic identification of the life cycle management model to be generated, and updating the associated service data life cycle management model identification to be associated, the service model identification of the life cycle management model to be generated and the service characteristic identification of the life cycle management model to be generated into a model information corresponding table of the life cycle management model base.
Further, before the step of obtaining the lifecycle management model association request, the method includes:
acquiring a life cycle management model generation request;
responding to the life cycle management model generation request, and acquiring a life cycle management model of the service data to be stored;
determining a life cycle management model identifier of the service data to be stored according to the life cycle management model of the service data to be stored;
and updating the service data life cycle management model to be stored and the service data life cycle management model identification to be stored into service data life cycle management model data of the life cycle management model library.
Further, before the step of obtaining the lifecycle management model association request, the method further includes:
calling a model client to obtain a life cycle management model updating request sent by a model server;
calling the model client to respond to the life cycle management model updating request, and downloading a to-be-stored service data life cycle management model from the model server, wherein the to-be-stored service data life cycle management model carries a to-be-stored service data life cycle management model identifier;
and updating the service data life cycle management model to be stored and the service data life cycle management model identification to the service data life cycle management model data of the life cycle management model library of the model client.
Further, the step of downloading the service data lifecycle management model to be stored from the model server includes:
calling the model client to acquire the account level;
and calling the model client to download the service data life cycle management model to be stored from the model server by adopting the account number level.
Further, the step of calling the model client to download the service data lifecycle management model to be stored from the model server by using the account level further includes:
calling the model client to acquire a network type;
and calling the model client to download the service data life cycle management model to be stored from the model server by adopting the account number level and the network type.
Further, the step of storing the service data identifier to be stored, the service data lifecycle management model identifier corresponding to the service data identifier to be stored, and the service data to be stored in a local cache includes:
acquiring a service data life cycle management model from a server according to a service data life cycle management model identifier corresponding to the service data identifier to be stored to obtain a service data life cycle management model corresponding to the service data identifier to be stored;
and storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored, the service data life cycle management model corresponding to the service data identification to be stored and the service data to be stored in the local cache.
The present application further proposes a local cache management device for APP, the device comprising:
the local data storage request acquisition module is used for acquiring a local data storage request sent by a target service model, wherein the local data storage request carries service data to be stored, a service data identifier to be stored and a target service characteristic identifier of the target service model;
a service data life cycle management model identification determining module, configured to search a service data life cycle management model identification from a life cycle management model library according to the target service feature identification of the target service model, to obtain a service data life cycle management model identification corresponding to the service data identification to be stored;
the data cache module is used for storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored and the service data to be stored in a local cache;
the service data operation request determining module is used for acquiring a service data operation request, and the service data operation request carries a service data identifier to be operated;
the target service data life cycle management model identification determining module is used for searching the service data life cycle management model identification from the local cache according to the service data identification to be operated to obtain the target service data life cycle management model identification;
the target service data life cycle management model determining module is used for acquiring a service data life cycle management model according to the target service data life cycle management model identification to obtain a target service data life cycle management model;
and the service data operation module is used for responding to the service data operation request and operating the service data corresponding to the service data identifier to be operated based on the target service data life cycle management model.
The present application further proposes a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also proposes a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
The method, the device, the equipment and the medium for managing the local cache of the APP firstly determine to search a service data life cycle management model identifier from a life cycle management model library according to a target service characteristic identifier of a target service model when a local data storage request is obtained, obtain a service data life cycle management model identifier corresponding to the service data identifier to be stored, store the service data identifier to be stored, the service data life cycle management model identifier corresponding to the service data identifier to be stored and service data to be stored in the local cache, search the service data life cycle management model identifier from the local cache according to the service data identifier to be operated when the service data operation request is obtained, obtain a target service data life cycle management model identifier, and obtain the number of services to be operated based on the target service data life cycle management model corresponding to the target service data life cycle management model identifier The business data corresponding to the identification is operated, so that the classification management of the life cycle of the business data is realized through the business data life cycle management model, the back-end service is not required to be requested and displayed in a refreshing mode when being triggered every time, the request quantity of requesting the back-end service is reduced, and the service pressure of a back-end server is relieved.
Drawings
Fig. 1 is a schematic flowchart of a local cache management method for APP according to an embodiment of the present application;
fig. 2 is a schematic block diagram of a structure of a local cache management apparatus for APP according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In order to solve the technical problems that in the local cache of the APP in the prior art, the APP is firstly displayed when triggered at each time, and then the latest number is asynchronously requested, so that the frequent request of back-end service and the display refreshing are caused, the local cache management method for the APP is provided, and the method is applied to the technical field of artificial intelligence. The local cache management method for the APP operates the service data corresponding to the service data identification to be operated based on the target service data lifecycle management model corresponding to the target service data lifecycle management model identification, so that the service data is subjected to lifecycle classification management through the service data lifecycle management model, the request of requesting the rear-end service and refreshing and displaying are not required when the service data is triggered every time, the request amount of requesting the rear-end service is reduced, and the service pressure of a rear-end server is reduced.
Referring to fig. 1, an embodiment of the present application provides a local cache management method for an APP, where the method includes:
s1: acquiring a local data storage request sent by a target service model, wherein the local data storage request carries service data to be stored, a service data identifier to be stored and a target service characteristic identifier of the target service model;
s2: searching a service data life cycle management model identification from a life cycle management model library according to the target service characteristic identification of the target service model to obtain a service data life cycle management model identification corresponding to the service data identification to be stored;
s3: storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored and the service data to be stored in a local cache;
s4: acquiring a service data operation request, wherein the service data operation request carries a service data identifier to be operated;
s5: searching a service data life cycle management model identifier from the local cache according to the service data identifier to be operated to obtain a target service data life cycle management model identifier;
s6: acquiring a service data life cycle management model according to the target service data life cycle management model identification to obtain a target service data life cycle management model;
s7: and responding to the service data operation request, and operating the service data corresponding to the service data identifier to be operated based on the target service data life cycle management model.
In the embodiment, when a local data storage request is obtained, a service data life cycle management model identifier is firstly determined to be searched from a life cycle management model base according to a target service characteristic identifier of a target service model, a service data life cycle management model identifier corresponding to the service data identifier to be stored is obtained, the service data identifier to be stored, the service data life cycle management model identifier corresponding to the service data identifier to be stored and service data to be stored are stored in a local cache, when a service data operation request is obtained, the service data life cycle management model identifier is searched from the local cache according to the service data identifier to be operated, the target service data life cycle management model identifier is obtained, and service data corresponding to the service data identifier to be operated are operated based on the target service data life cycle management model corresponding to the target service data life cycle management model identifier, therefore, the classification management of the life cycle of the business data is realized through the business data life cycle management model, the back-end service is not required to be requested and refreshed and displayed every time the business data is triggered, the request quantity of requesting the back-end service is reduced, and the service pressure of a back-end server is relieved.
For S1, the request may be a local data storage request sent by a user through a target service model of the target APP, or a local data storage request autonomously triggered by a program file of the target APP.
The target APP, i.e., APP. The APP is mobile phone software, and software installed on the smart phone improves the defects and individuation of an original system, so that the functions of the mobile phone are improved, and a main means of providing richer use experience is provided for users. It can be understood that the target APP may also be software on a tablet computer or a smart wearable device.
The target APP sends a request to acquire back-end service through communication connection with the server.
The service data to be stored refers to the service data which the local data storage request wishes to store. Traffic data includes, but is not limited to: the system comprises basic information of a user, user contact information, user reservation information, user application information and user repayment information.
The service data identifier to be stored refers to a service data identifier of the service data which the local data storage request wishes to store.
The service data identifier may be a service data name, a service data ID, or the like, which uniquely identifies one service data.
The target business model, i.e., the business model that sends the local data storage request. The business model is used for meeting the business requirements of the user and is realized as a business process. The business process comprises one or more process nodes.
And the target service characteristic identifier is the service characteristic identifier of the service characteristic when the target service model sends the local data storage request. The service characteristics refer to characteristic information of the current process node.
The service feature identifier may be a service feature name, a service feature ID, or the like, which uniquely identifies a service feature.
The local data storage request refers to a request for storing data in the electronic device where the target APP is located.
It can be understood that the service data to be stored may be service data uploaded by a user, or service data downloaded by a back-end service provided by a request server.
For S2, the target service feature is searched for a service data life cycle management model identifier from the life cycle management model library, and the service data life cycle management model identifier corresponding to the service feature searched for in the life cycle management model library is used as the service data identifier to be stored.
Optionally, the lifecycle management model library is stored in a local cache.
The local cache is a cache of the target APP in the electronic device loaded with the target APP.
Optionally, the lifecycle management model library is stored in a server.
The service data lifecycle management model identifier may be an identifier uniquely identifying one service data lifecycle management model, such as a service data lifecycle management model name, a service data lifecycle management model ID, and the like.
The lifecycle management model library comprises: model information correspondence table, service data life cycle management model data. The model information correspondence table includes: the service data life cycle management system comprises service data life cycle management model identifications, service model identifications and service characteristic identifications, wherein each service model identification corresponds to at least one service characteristic identification, and each service characteristic identification corresponds to one service data life cycle management model identification. The business data lifecycle management model data comprises one or more business data lifecycle management models.
The service model identifier may be a service model name, a service model ID, or the like that uniquely identifies a service model.
The service data life cycle management model is used for managing the life cycle of service data. Managing the lifecycle of the business data includes, but is not limited to: the method comprises the steps of creating business data, displaying the business data, refreshing the business data and destroying the business data.
For example, the life cycle management policy of the business data life cycle management model a1 on the business data S1 includes: the method includes a refresh policy of performing asynchronous refresh and local comparison during login (that is, performing background asynchronous version comparison on the service data S1 during login by a user, not refreshing if the versions are consistent, and refreshing if the versions are inconsistent), directly using local data during non-first login, directly using local data when a non-login page applies for operating the service data, and destroying the service data from a local cache after completion of the reservation, which is not specifically limited in this example.
For step S3, storing the service data identifier to be stored and the service data lifecycle management model identifier corresponding to the service data identifier to be stored in a service data corresponding relation table of a local cache; and storing the service data to be stored in a service database cached locally.
For S4, the request may be a service data operation request sent by the user through the target APP, or a service data operation request autonomously triggered by the program file of the target APP.
The service data operation request refers to a request for operating service data in the local cache.
The service data identifier to be operated refers to a service data identifier of service data which the service data operation request desires to operate.
For S5, the service data identifier to be operated is searched in the service data correspondence table of the local cache, and the service data lifecycle management model identifier corresponding to the service data identifier searched in the service data correspondence table is used as the target service data lifecycle management model identifier.
For step S6, a service data lifecycle management model is obtained from the local cache according to the target service data lifecycle management model identifier, and the obtained service data lifecycle management model is used as the target service data lifecycle management model.
For S7, for example, the lifecycle management policy of the business data lifecycle management model a1 on the business data S1 includes: the method comprises the steps of comparing business data S1 with a local comparison refresh strategy after asynchronous refresh during login (namely, comparing background asynchronous versions of the business data S1 when a user logs in, not refreshing if the versions are consistent, and refreshing if the versions are inconsistent), directly using the business data in a local cache when the user logs in for the first time, directly using the business data in the local cache when a non-login page applies for operating the business data, destroying the business data from the local cache after reservation is completed, storing contact information L1 (namely business data S1) in the local cache by the user in an application link, triggering to store the contact information L1 in the local cache and generating a business data life cycle management model A1, storing the corresponding relation of the contact information L1 and A1 in a business data corresponding relation table in the local cache, adopting the refresh strategy after asynchronous refresh with the local comparison when the user triggers the contact information L1 for the first time during each login, otherwise, the contact information L1 in the local cache is directly used, and when the user applies for the loan, the corresponding relationship between the contact information L1, the contact information L1, and the contact information a1 is destroyed from the local cache, which is not limited in this example.
In an embodiment, before the step of searching for the service data life cycle management model identifier from the life cycle management model library according to the target service feature identifier of the target service model to obtain the service data life cycle management model identifier corresponding to the service data identifier to be stored, the method further includes:
s21: acquiring a life cycle management model association request;
s22: responding to the association request for acquiring the life cycle management model, and acquiring a service model identifier of the life cycle management model to be generated, a service characteristic identifier of the life cycle management model to be generated and a service data life cycle management model identifier to be associated;
s23: and associating the service data life cycle management model identification to be associated, the service model identification of the life cycle management model to be generated and the service characteristic identification of the life cycle management model to be generated, and updating the associated service data life cycle management model identification to be associated, the service model identification of the life cycle management model to be generated and the service characteristic identification of the life cycle management model to be generated into a model information corresponding table of the life cycle management model base.
According to the embodiment, the life cycle management model base is updated before the service data life cycle management model identification is searched from the life cycle management model base according to the target service characteristic identification of the target service model, so that a foundation is laid for carrying out life cycle classification management on the service data through the service data life cycle management model.
For S21, the lifecycle management model association request may be sent by the user through the target APP, or may be a lifecycle management model association request of a third-party application system.
The lifecycle management model association request is a request for associating a lifecycle management model with a business model and a business feature.
And S22, responding to the request for acquiring the life cycle management model association, and acquiring the service model identification of the life cycle management model to be generated, the service characteristic identification of the life cycle management model to be generated and the service data life cycle management model identification to be associated, which are input by the user.
The service model identifier of the life cycle management model to be generated is the service model identifier which the life cycle management model association request hopes to associate with.
The service characteristic identifier of the life cycle management model to be generated is the service characteristic identifier which the life cycle management model association request hopes to associate with.
The service data life cycle management model identifier to be associated is the service data life cycle management model identifier which the life cycle management model association request hopes to associate.
For S23, the service data lifecycle management model identifier to be associated, the service model identifier of the lifecycle management model to be generated, and the service feature identifier of the lifecycle management model to be generated are associated into a piece of corresponding relationship data, and the corresponding relationship data is updated to the model information corresponding table of the lifecycle management model library.
In an embodiment, before the step of obtaining the lifecycle management model association request, the method further includes:
s2111: acquiring a life cycle management model generation request;
s2112: responding to the life cycle management model generation request, and acquiring a life cycle management model of the service data to be stored;
s2113: determining a life cycle management model identifier of the service data to be stored according to the life cycle management model of the service data to be stored;
s2114: and updating the service data life cycle management model to be stored and the service data life cycle management model identification to be stored into service data life cycle management model data of the life cycle management model library.
According to the embodiment, before the step of obtaining the life cycle management model association request, the service data life cycle management model is added into the service data life cycle management model data of the life cycle management model library, so that a basis is provided for subsequently responding to the life cycle management model association request.
For S2111, the lifecycle management model generation request sent by the user through the target APP may be, or the lifecycle management model generation request of the third-party application system may be.
The lifecycle management model generation request refers to a request for generating a business data lifecycle management model.
And S2112, responding to the life cycle management model generation request, and acquiring the service data life cycle management model to be stored, which is input by the user.
The service data lifecycle management model to be stored is a service data lifecycle management model (which may be newly generated or modified based on the existing service data lifecycle management model) in the service data lifecycle management model data that needs to be stored in the lifecycle management model library.
And S2113, generating the service data life cycle management model identification to be stored corresponding to the service data life cycle management model to be stored according to the service data life cycle management model identification in the life cycle management model library and the service data life cycle management model to be stored according to a preset identification generation rule.
The preset identifier generation rules include, but are not limited to: the whole adopts a set of serial numbers, and different service models respectively adopt a set of serial numbers.
And for S2114, the service data life cycle management model to be stored and the service data life cycle management model identification to be stored are associated, and the associated service data life cycle management model to be stored and the associated service data life cycle management model identification to be stored are updated into the service data life cycle management model data of the life cycle management model library.
In an embodiment, before the step of obtaining the lifecycle management model association request, the method further includes:
s2121: calling a model client to obtain a life cycle management model updating request sent by a model server;
s2122: calling the model client to respond to the life cycle management model updating request, and downloading a to-be-stored service data life cycle management model from the model server, wherein the to-be-stored service data life cycle management model carries a to-be-stored service data life cycle management model identifier;
s2123: and updating the service data life cycle management model to be stored and the service data life cycle management model identification to the service data life cycle management model data of the life cycle management model library of the model client.
In the embodiment, before the step of obtaining the life cycle management model association request, the service data life cycle management model data of the life cycle management model library of the model client is updated through the model client and the model server, so that a basis is provided for subsequently responding to the life cycle management model association request; the model client and the model server are beneficial to unified management of the business data life cycle management model, the updating efficiency of the business data life cycle management model is improved, and the accuracy of the business data life cycle management model in the APP is improved.
For S2121, the calling model client obtains a life cycle management model update request sent by the user through the server.
The lifecycle management model update request is a request for updating a business data lifecycle management model from a model server to a model client.
And the model server is installed on the server. And the model server can be developed by adopting Java language. The user can add, refresh, delete and modify the service data life cycle management model through the model server.
And the model client is used for communicating with the model server and managing and executing the service data life cycle management model of the target APP. The model client is installed in the electronic device where the target APP is located, and may be an independent module or a plug-in, or may be a program module of the target APP. When the electronic equipment where the model client is located is an android system, the model client is developed by adopting Java language; when the electronic device where the model client is located is an IOS system, the model client is developed by adopting object C language.
And for S2122, calling the model client to respond to the life cycle management model updating request, downloading the service data life cycle management model from the model server, and taking the downloaded service data life cycle management model as the service data life cycle management model to be stored.
For S2123, when a service data lifecycle management model identifier and the service data lifecycle management model identifier to be stored exist in the service data lifecycle management model data, replacing, by the service data lifecycle management model to be stored, a service data lifecycle management model in the service data lifecycle management model data whose service data lifecycle management model identifier is the same as the service data lifecycle management model identifier to be stored; and when the service data life cycle management model identification and the service data life cycle management model identification to be stored do not exist in the service data life cycle management model data, adding the service data life cycle management model to be stored and the service data life cycle management model identification to be stored into the service data life cycle management model data of the life cycle management model base of the model client.
In an embodiment, the step of downloading the service data lifecycle management model to be stored from the model server includes:
s21221: calling the model client to acquire the account level;
s21222: and calling the model client to download the service data life cycle management model to be stored from the model server by adopting the account number level.
According to the embodiment, the service data life cycle management model to be stored is downloaded through the account number level, so that hierarchical service is facilitated according to the account number level, and the personalized requirements of users are met.
For S21221, the model client is called to obtain the account level of the login account of the APP in which the model client is located.
It can be understood that when the APP corresponding to the model client is not logged in, the model client is called to obtain a preset guest level as an account level.
The account levels, namely the account levels, have different permissions and service ranges for using the APP at different account levels, and are used for carrying out hierarchical service on the clients.
For S21222, the model client is called to download the service data lifecycle management model corresponding to the account level from the model server, and the downloaded service data lifecycle management model corresponding to the account level is used as the service data lifecycle management model to be stored.
In an embodiment, the step of calling the model client to download the service data lifecycle management model to be stored from the model server by using the account level further includes:
s212221: calling the model client to acquire a network type;
s212222: and calling the model client to download the service data life cycle management model to be stored from the model server by adopting the account number level and the network type.
In this embodiment, the service data lifecycle management model to be stored is downloaded through the account level and the network type, so that a hierarchical service is facilitated according to the account level and the network type, and personalized requirements of users are further met.
For S212221, the model client is called to obtain the network type of the network to which the electronic device where the model client is connected.
Network types include, but are not limited to: mobile network, WIFI.
For S212222, the model client is called to download the service data lifecycle management model corresponding to the account level and the network type from the model server, and the downloaded service data lifecycle management model corresponding to the account level is used as the service data lifecycle management model to be stored.
In an embodiment, the step of storing the service data identifier to be stored, the service data lifecycle management model identifier corresponding to the service data identifier to be stored, and the service data to be stored in a local cache includes:
s31: acquiring a service data life cycle management model from a server according to a service data life cycle management model identifier corresponding to the service data identifier to be stored to obtain a service data life cycle management model corresponding to the service data identifier to be stored;
s32: and storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored, the service data life cycle management model corresponding to the service data identification to be stored and the service data to be stored in the local cache.
According to the embodiment, the required service data life cycle management model is stored in the local cache, so that the data volume stored by the App is reduced, and the response speed is improved.
For S31, sending the service data life cycle management model identification corresponding to the service data identification to be stored to the server to request downloading of the service data life cycle management model; and acquiring a service data life cycle management model sent by the server, and taking the received service data life cycle management model as a service data life cycle management model corresponding to the service data identifier to be stored.
For step S32, storing the service data identifier to be stored and the service data lifecycle management model identifier corresponding to the service data identifier to be stored in a service data corresponding relation table of a local cache; storing the service data to be stored in a service database cached locally; and storing the service data life cycle management model corresponding to the service data identifier to be stored in the locally cached model data.
Referring to fig. 2, the present application further proposes a local cache management apparatus for APP, the apparatus including:
a local data storage request obtaining module 100, configured to obtain a local data storage request sent by a target service model, where the local data storage request carries service data to be stored, a service data identifier to be stored, and a target service feature identifier of the target service model;
a service data life cycle management model identifier determining module 200, configured to search a service data life cycle management model identifier from a life cycle management model library according to the target service feature identifier of the target service model, to obtain a service data life cycle management model identifier corresponding to the service data identifier to be stored;
the data caching module 300 is configured to store the service data identifier to be stored, the service data lifecycle management model identifier corresponding to the service data identifier to be stored, and the service data to be stored in a local cache;
a service data operation request determining module 400, configured to obtain a service data operation request, where the service data operation request carries a service data identifier to be operated;
a target service data life cycle management model identification determining module 500, configured to perform service data life cycle management model identification search from the local cache according to the service data identification to be operated, so as to obtain a target service data life cycle management model identification;
a target service data lifecycle management model determining module 600, configured to obtain a service data lifecycle management model according to the target service data lifecycle management model identifier, so as to obtain a target service data lifecycle management model;
a service data operation module 700, configured to respond to the service data operation request, and operate, based on the target service data lifecycle management model, service data corresponding to the service data identifier to be operated.
In the embodiment, when a local data storage request is obtained, a service data life cycle management model identifier is firstly determined to be searched from a life cycle management model base according to a target service characteristic identifier of a target service model, a service data life cycle management model identifier corresponding to the service data identifier to be stored is obtained, the service data identifier to be stored, the service data life cycle management model identifier corresponding to the service data identifier to be stored and service data to be stored are stored in a local cache, when a service data operation request is obtained, the service data life cycle management model identifier is searched from the local cache according to the service data identifier to be operated, the target service data life cycle management model identifier is obtained, and service data corresponding to the service data identifier to be operated are operated based on the target service data life cycle management model corresponding to the target service data life cycle management model identifier, therefore, the classification management of the life cycle of the business data is realized through the business data life cycle management model, the back-end service is not required to be requested and refreshed and displayed every time the business data is triggered, the request quantity of requesting the back-end service is reduced, and the service pressure of a back-end server is relieved.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data such as a local cache management method for the APP. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a local cache management method for an APP. The local cache management method for the APP comprises the following steps: acquiring a local data storage request sent by a target service model, wherein the local data storage request carries service data to be stored, a service data identifier to be stored and a target service characteristic identifier of the target service model; searching a service data life cycle management model identification from a life cycle management model library according to the target service characteristic identification of the target service model to obtain a service data life cycle management model identification corresponding to the service data identification to be stored; storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored and the service data to be stored in a local cache; acquiring a service data operation request, wherein the service data operation request carries a service data identifier to be operated; searching a service data life cycle management model identifier from the local cache according to the service data identifier to be operated to obtain a target service data life cycle management model identifier; acquiring a service data life cycle management model according to the target service data life cycle management model identification to obtain a target service data life cycle management model; and responding to the service data operation request, and operating the service data corresponding to the service data identifier to be operated based on the target service data life cycle management model.
In the embodiment, when a local data storage request is obtained, a service data life cycle management model identifier is firstly determined to be searched from a life cycle management model base according to a target service characteristic identifier of a target service model, a service data life cycle management model identifier corresponding to the service data identifier to be stored is obtained, the service data identifier to be stored, the service data life cycle management model identifier corresponding to the service data identifier to be stored and service data to be stored are stored in a local cache, when a service data operation request is obtained, the service data life cycle management model identifier is searched from the local cache according to the service data identifier to be operated, the target service data life cycle management model identifier is obtained, and service data corresponding to the service data identifier to be operated are operated based on the target service data life cycle management model corresponding to the target service data life cycle management model identifier, therefore, the classification management of the life cycle of the business data is realized through the business data life cycle management model, the back-end service is not required to be requested and refreshed and displayed every time the business data is triggered, the request quantity of requesting the back-end service is reduced, and the service pressure of a back-end server is relieved.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements a local cache management method for an APP, including the steps of: acquiring a local data storage request sent by a target service model, wherein the local data storage request carries service data to be stored, a service data identifier to be stored and a target service characteristic identifier of the target service model; searching a service data life cycle management model identification from a life cycle management model library according to the target service characteristic identification of the target service model to obtain a service data life cycle management model identification corresponding to the service data identification to be stored; storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored and the service data to be stored in a local cache; acquiring a service data operation request, wherein the service data operation request carries a service data identifier to be operated; searching a service data life cycle management model identifier from the local cache according to the service data identifier to be operated to obtain a target service data life cycle management model identifier; acquiring a service data life cycle management model according to the target service data life cycle management model identification to obtain a target service data life cycle management model; and responding to the service data operation request, and operating the service data corresponding to the service data identifier to be operated based on the target service data life cycle management model.
The executed local cache management method for the APP comprises the steps of firstly determining to search a service data life cycle management model identifier from a life cycle management model base according to a target service characteristic identifier of a target service model when a local data storage request is obtained, obtaining a service data life cycle management model identifier corresponding to the service data identifier to be stored, storing the service data identifier to be stored, the service data life cycle management model identifier corresponding to the service data identifier to be stored and service data to be stored in a local cache, searching the service data life cycle management model identifier from the local cache according to the service data identifier to be operated when a service data operation request is obtained, obtaining a target service data life cycle management model identifier, and searching the service data life cycle management model identifier corresponding to the service data identifier to be operated based on the target service data life cycle management model identifier corresponding to the target service data life cycle management model identifier The data is operated, so that the life cycle classification management of the service data is realized through the service data life cycle management model, the back-end service is not required to be requested and refreshed and displayed every time the data is triggered, the request quantity of requesting the back-end service is reduced, and the service pressure of a back-end server is relieved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A local cache management method for APP, the method comprising:
acquiring a local data storage request sent by a target service model, wherein the local data storage request carries service data to be stored, a service data identifier to be stored and a target service characteristic identifier of the target service model;
searching a service data life cycle management model identification from a life cycle management model library according to the target service characteristic identification of the target service model to obtain a service data life cycle management model identification corresponding to the service data identification to be stored;
storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored and the service data to be stored in a local cache;
acquiring a service data operation request, wherein the service data operation request carries a service data identifier to be operated;
searching a service data life cycle management model identifier from the local cache according to the service data identifier to be operated to obtain a target service data life cycle management model identifier;
acquiring a service data life cycle management model according to the target service data life cycle management model identification to obtain a target service data life cycle management model;
and responding to the service data operation request, and operating the service data corresponding to the service data identifier to be operated based on the target service data life cycle management model.
2. The local cache management method for APP according to claim 1, wherein before the step of searching for a service data lifecycle management model identifier from a lifecycle management model library according to the target service feature identifier of the target service model to obtain a service data lifecycle management model identifier corresponding to the service data identifier to be stored, the method further comprises:
acquiring a life cycle management model association request;
responding to the association request for acquiring the life cycle management model, and acquiring a service model identifier of the life cycle management model to be generated, a service characteristic identifier of the life cycle management model to be generated and a service data life cycle management model identifier to be associated;
and associating the service data life cycle management model identification to be associated, the service model identification of the life cycle management model to be generated and the service characteristic identification of the life cycle management model to be generated, and updating the associated service data life cycle management model identification to be associated, the service model identification of the life cycle management model to be generated and the service characteristic identification of the life cycle management model to be generated into a model information corresponding table of the life cycle management model base.
3. The local cache management method for APP as claimed in claim 2, wherein said step of obtaining a lifecycle management model association request is preceded by:
acquiring a life cycle management model generation request;
responding to the life cycle management model generation request, and acquiring a life cycle management model of the service data to be stored;
determining a life cycle management model identifier of the service data to be stored according to the life cycle management model of the service data to be stored;
and updating the service data life cycle management model to be stored and the service data life cycle management model identification to be stored into service data life cycle management model data of the life cycle management model library.
4. The local cache management method for APP as claimed in claim 2, wherein said step of obtaining a lifecycle management model association request further comprises, before said step of obtaining a lifecycle management model association request:
calling a model client to obtain a life cycle management model updating request sent by a model server;
calling the model client to respond to the life cycle management model updating request, and downloading a to-be-stored service data life cycle management model from the model server, wherein the to-be-stored service data life cycle management model carries a to-be-stored service data life cycle management model identifier;
and updating the service data life cycle management model to be stored and the service data life cycle management model identification to the service data life cycle management model data of the life cycle management model library of the model client.
5. The local cache management method for APP according to claim 4, wherein the step of downloading the service data lifecycle management model to be stored from the model server includes:
calling the model client to acquire the account level;
and calling the model client to download the service data life cycle management model to be stored from the model server by adopting the account number level.
6. The local cache management method for APP according to claim 5, wherein the step of invoking the model client to download the service data lifecycle management model to be stored from the model server using the account level further comprises:
calling the model client to acquire a network type;
and calling the model client to download the service data life cycle management model to be stored from the model server by adopting the account number level and the network type.
7. The local cache management method for APP according to claim 1, wherein the step of storing the service data identifier to be stored, the service data lifecycle management model identifier corresponding to the service data identifier to be stored, and the service data to be stored in a local cache includes:
acquiring a service data life cycle management model from a server according to a service data life cycle management model identifier corresponding to the service data identifier to be stored to obtain a service data life cycle management model corresponding to the service data identifier to be stored;
and storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored, the service data life cycle management model corresponding to the service data identification to be stored and the service data to be stored in the local cache.
8. An apparatus for local cache management for an APP, the apparatus comprising:
the local data storage request acquisition module is used for acquiring a local data storage request sent by a target service model, wherein the local data storage request carries service data to be stored, a service data identifier to be stored and a target service characteristic identifier of the target service model;
a service data life cycle management model identification determining module, configured to search a service data life cycle management model identification from a life cycle management model library according to the target service feature identification of the target service model, to obtain a service data life cycle management model identification corresponding to the service data identification to be stored;
the data cache module is used for storing the service data identification to be stored, the service data life cycle management model identification corresponding to the service data identification to be stored and the service data to be stored in a local cache;
the service data operation request determining module is used for acquiring a service data operation request, and the service data operation request carries a service data identifier to be operated;
the target service data life cycle management model identification determining module is used for searching the service data life cycle management model identification from the local cache according to the service data identification to be operated to obtain the target service data life cycle management model identification;
the target service data life cycle management model determining module is used for acquiring a service data life cycle management model according to the target service data life cycle management model identification to obtain a target service data life cycle management model;
and the service data operation module is used for responding to the service data operation request and operating the service data corresponding to the service data identifier to be operated based on the target service data life cycle management model.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011502654.6A 2020-12-17 2020-12-17 Local cache management method, device, equipment and medium for APP Active CN112631769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011502654.6A CN112631769B (en) 2020-12-17 2020-12-17 Local cache management method, device, equipment and medium for APP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011502654.6A CN112631769B (en) 2020-12-17 2020-12-17 Local cache management method, device, equipment and medium for APP

Publications (2)

Publication Number Publication Date
CN112631769A true CN112631769A (en) 2021-04-09
CN112631769B CN112631769B (en) 2024-01-05

Family

ID=75316913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011502654.6A Active CN112631769B (en) 2020-12-17 2020-12-17 Local cache management method, device, equipment and medium for APP

Country Status (1)

Country Link
CN (1) CN112631769B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572907A (en) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 Business object acquisition method and device
CN108667639A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 A kind of method for managing resource under privately owned cloud environment and management server
CN109803281A (en) * 2017-11-16 2019-05-24 华为技术有限公司 Management method, equipment and the system of network service
CN110597739A (en) * 2019-06-03 2019-12-20 上海云盾信息技术有限公司 Configuration management method, system and equipment
CN110809028A (en) * 2019-10-11 2020-02-18 许昌许继软件技术有限公司 Device full life cycle management method and system based on Handle identification service
CN111581239A (en) * 2020-04-10 2020-08-25 支付宝实验室(新加坡)有限公司 Cache refreshing method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572907A (en) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 Business object acquisition method and device
CN108667639A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 A kind of method for managing resource under privately owned cloud environment and management server
CN109803281A (en) * 2017-11-16 2019-05-24 华为技术有限公司 Management method, equipment and the system of network service
CN110597739A (en) * 2019-06-03 2019-12-20 上海云盾信息技术有限公司 Configuration management method, system and equipment
CN110809028A (en) * 2019-10-11 2020-02-18 许昌许继软件技术有限公司 Device full life cycle management method and system based on Handle identification service
CN111581239A (en) * 2020-04-10 2020-08-25 支付宝实验室(新加坡)有限公司 Cache refreshing method and electronic equipment

Also Published As

Publication number Publication date
CN112631769B (en) 2024-01-05

Similar Documents

Publication Publication Date Title
CN111464615B (en) Request processing method, device, server and storage medium
CN110620812B (en) Interactive information pushing method and device, computer equipment and storage medium
CN111143462A (en) Data export method and device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN110213392B (en) Data distribution method and device, computer equipment and storage medium
CN114238811A (en) Page loading method, page request response method, device, equipment and medium
CN113726676B (en) Redis-based API interface current limiting method, redis-based API interface current limiting device, computer equipment and storage medium
CN112631769B (en) Local cache management method, device, equipment and medium for APP
US9665732B2 (en) Secure Download from internet marketplace
CN114003432A (en) Parameter checking method and device, computer equipment and storage medium
CN111222153B (en) Application program authority management method and device and storage medium
CN113407876B (en) Webpage refreshing method, webpage refreshing system and related device
CN113626188A (en) Task pushing method and device, computer equipment and storage medium
CN113438331A (en) Short domain name management method, system, electronic device and storage medium
CN115017538A (en) Data processing method and device, electronic equipment and storage medium
CN114969612A (en) Multi-tenant data isolation method, system and computer equipment
CN110807040B (en) Method, device, equipment and storage medium for managing data
CN113419784A (en) Page resource caching method, device, equipment and medium
CN109451064B (en) Off-line implementation method and device of web application, computer equipment and storage medium
CN113472915A (en) Domain name resolution method, device, equipment and storage medium
CN113641987A (en) Interception method and device for application silent installation and computer equipment
CN112783866A (en) Data reading method and device, computer equipment and storage medium
CN110944037A (en) Method, computer device and storage medium for client cache change configuration
CN110928607A (en) Service implementation method, device, computer equipment and storage medium
CN113326080B (en) H5 page loading method, device, equipment and storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20231207

Address after: 518100, Building 2, 3010, Jingji Yujing Times Building, Huanggekeng Community, Longcheng Street, Longgang District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Rolling Water Technology Co.,Ltd.

Address before: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen LIAN intellectual property service center

Effective date of registration: 20231207

Address after: 518000 Room 202, block B, aerospace micromotor building, No.7, Langshan No.2 Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen LIAN intellectual property service center

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant