Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Inactive Publication Date: 2017-02-22
HUNDSUN TECH
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the way that the cache code corresponding to the cache operation and the business code corresponding to the business operation are tightly coupled requires developers to write a large amount of cache code coupled with the business code while writing the business code, which increases the workload of code writing and reduces the This improves the development efficiency of the application, and when the developer writes the cache code and business code in a coupled manner, it is impossible to avoid the situation that the developer misses to write the relevant cache code, which will reduce the performance of data processing when the application is running

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code processing method and device
  • Code processing method and device
  • Code processing method and device

Examples

Experimental program
Comparison scheme
Effect test

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 ...

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

PUM

No PUM Login to View More

Abstract

The invention provides a code processing method and device. The code processing method comprises the steps of reading a cache configuration file when processing a service code; executing a rule and a primary key generation rule according to a cache operation in the cache configuration file, and generating a cache code; and running the cache code and the service code in a fused way. According to the code processing method provided by the invention, the coding time is shortened through the above way, so that the development efficiency of an application is improved; and besides, since developers no longer need to write the cache code, so that omission in writing the cache code due to the negligence of the developers can be avoided, thus the data processing performance can be effectively improved when running the application.

Description

technical field [0001] The present application relates to the field of software, in particular to a code processing method and device. Background technique [0002] In the field of data processing, caching technology is often used (that is, some data that does not change or has a relatively low frequency of change is stored in the cache space. When the business needs to obtain data, first go to the cache space to obtain the data. If it does not exist in the cache space, A technique for obtaining data from the original data source) to improve processing performance. [0003] At present, in the application program that applies the cache technology, the cache code corresponding to the cache operation and the business code corresponding to the business operation are tightly coupled. However, the tight coupling between the cache code corresponding to the cache operation and the business code corresponding to the business operation requires developers to write a large amount of c...

Claims

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 罗果
Owner HUNDSUN TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products