Data access method and device
The invention provides a data access method and device.The method comprises the steps that a section class is created, access instructions for a database are intercepted through the section class, whether an interface in each intercepted access instruction has a link point on the section or not is j...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a data access method and device.The method comprises the steps that a section class is created, access instructions for a database are intercepted through the section class, whether an interface in each intercepted access instruction has a link point on the section or not is judged, and if the interface in the access instruction has the link point on the section, the access instruction is accessed to the database; if yes, accessing the cache to obtain access result data by executing the cache processing plug-in, and returning the access result data to the user; and if the interface in the access instruction does not have the link point on the aspect, accessing the database to obtain access result data and returning the access result data to the user. Based on the method provided by the invention, the purpose of flexibly switching the data acquisition mode of the interface according to the actual access frequency of the interface is achieved, and the access pressure on the database is ef |
---|