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

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

Active Publication Date: 2016-11-09
ALIBABA (CHINA) CO LTD
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the technical problem to be solved by the present invention is that the existing caching technology has poor adaptability in object-oriented systems, resulting in low development efficiency

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
  • Object-oriented cache writing-in-in method and device as well as object-oriented cache reading method and device
  • Object-oriented cache writing-in-in method and device as well as object-oriented cache reading method and device
  • Object-oriented cache writing-in-in method and device as well as object-oriented cache reading method and device

Examples

Experimental program
Comparison scheme
Effect test

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

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 relates to an object-oriented cache writing-in-in method and device as well as an object-oriented cache reading method and device. The object-oriented cache writing-in method comprises the following steps of: under the condition that a writing-in request is received, calling a generic object storage interface; determining a unique identifier of a to-be-written object corresponding to the writing-in request through the generic object storage interface, and generating a key of the to-be-written object according to the unique identifier; sequencing the to-be-written object into a flow through the generic object storage interface according to a parameter type and a parameter format specified by a preset protocol, wherein the preset protocol can be used for the sequencing of any type; and writing the flow in a cache through the generic object storage interface according to the key. According to the methods and devices provided by the invention, the object-oriented languages can be combined with the cache to directly access the objects in the object-oriented languages, so that the development workload is greatly decreased, the development convenience and efficiency are improved, the reading / writing-in load of external storage equipment can be reduced, the reading / writing-in performance bottleneck problem of the external storage equipment can be solved and the system performance can be greatly improved.

Description

technical field [0001] The invention relates to the technical field of caching, in particular to an object-oriented caching writing and reading method and device. Background technique [0002] For a large-scale Web (web page) system, the number of users is very large, resulting in a very high load on the server, so the disk read and write performance is low, and memory needs to be used as a cache to improve the performance of the entire system. The cache can directly provide services to most users, avoiding each request of users from accessing low-performance external storage devices, thereby improving the efficiency of the entire system. Therefore, caching is extremely important to improve the performance of the entire system. [0003] Existing large-scale Web systems are usually developed using object-oriented languages. Object-oriented is a software development method, which refers to the use of encapsulation, inheritance and polymorphism in program design. Encapsulati...

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
IPC IPC(8): G06F12/0877G06F9/44
CPCG06F8/315G06F12/0877
Inventor 王军吴昊宇王冀
Owner ALIBABA (CHINA) CO LTD
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