Object-oriented cache writing and reading method and device
An object-oriented and object-storage technology, applied in memory systems, creating/generating source codes, instruments, etc., can solve problems such as low development efficiency and poor adaptability of caching technology, reduce read and write loads, improve portability and efficiency, The effect of improving access speed
- 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. like 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 gen...
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. like 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 may...
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. like 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 proto...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


