Object-oriented cache writing-in-in method and device as well as object-oriented cache reading method and device
An object-oriented, object storage technology, applied in program control devices, memory systems, instruments, etc., can solve the problems of poor adaptability of cache technology and low development efficiency, so as to improve portability and efficiency, reduce read and write load, and reduce development The effect of workload
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] figure 1 A flow chart showing an implementation of an object-oriented cache writing method according to an embodiment of the present invention is shown. Such as figure 1 As shown, the method mainly includes:
[0072] In step S101, when a write request is received, a common object storage interface is invoked.
[0073] It should be noted that the embodiment of the present invention can be applied to any system developed based on object-oriented language, for example, it can be applied to a background server of a website.
[0074] Wherein, the general object storage interface may be a general interface for storing objects of a class for external calling. Calling this common object storage interface can directly write objects of any class into the cache of the object-oriented system.
[0075] In the embodiment of the present invention, when the external interface receives a write request, the external interface calls the general object storage interface, so that the ...
Embodiment 2
[0101] Figure 4 A flow chart showing an implementation of an object-oriented cache reading method according to an embodiment of the present invention is shown. Such as Figure 4 As shown, the method mainly includes:
[0102] In step S401, when a query request is received, the key corresponding to the query request is determined through the general object query interface.
[0103] Wherein, the general object query interface may be a general interface for querying objects of a class according to a query request for external calls. Calling the general object query interface can directly query and obtain objects from the object-oriented cache according to the query request, that is, the result returned by the general object query interface is an object. This generic object query interface supports queries on arbitrary classes.
[0104] In the embodiment of the present invention, determining the key corresponding to the query request through the general object query interface ...
Embodiment 3
[0124] Figure 7 A structural block diagram of an object-oriented cache writing device according to an embodiment of the present invention is shown. The device may be a server, or other cache writing device, which is not limited here. For ease of description, only parts related to the embodiments of the present invention are shown. Such as Figure 7 As shown, the device includes:
[0125] A general object storage interface calling module 71, configured to call the general object storage interface when a write request is received;
[0126] The key generation module 72 is used to determine the unique identifier of the object to be written corresponding to the write request through the general object storage interface, and generate the key of the object to be written according to the unique identifier;
[0127] The serialization module 73 is used to serialize the object to be written into a stream according to the parameter type and parameter format specified in the preset pr...
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