Code processing method and device
A processing method and code technology, applied in the field of code processing methods and devices, can solve the problems of reducing data processing performance, reducing application program development efficiency, increasing code writing workload, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0102] See figure 1 , which shows a flow chart of the code processing method provided by this application, which may include the following steps:
[0103] Step S11: When processing the business code, read the cache configuration file.
[0104] In this embodiment, the cache configuration file includes cache operation execution rules and primary key generation rules. Among them, the cache operation execution rule is used to describe what kind of cache operation the business code will perform this time (such as updating data in the cache, inserting data into the cache, deleting data in the cache, or obtaining data in the cache); primary key generation Rules are used to describe the primary keys of cached objects (that is, objects that need to be placed in the cache).
[0105] Wherein, the primary key generation rule is specifically a statement that uses a dynamic template language to describe the primary key of the cache object. When the primary key generation rule is a statem...
Embodiment 2
[0189] Corresponding to the above method embodiments, this embodiment provides a code processing device, please refer to figure 2 , the code processing device includes: a reading module 21 , a generating module 22 and an operating module 23 .
[0190] The reading module 21 is configured to read the cache configuration file when processing the business code.
[0191] The generation module 22 is configured to generate cache codes according to the cache operation execution rules and primary key generation rules in the cache configuration file.
[0192] The primary key generation rule is a statement describing the primary key of the cache object using a dynamic template language.
[0193] The running module 23 is configured to perform integrated running of the cache code and the service code.
[0194] In this embodiment, the reading module 21 may specifically include: a first reading unit, configured to read the cache configuration file when compiling the business ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com