CN108388424A - A kind of method, apparatus and electronic equipment of calling interface data - Google Patents

A kind of method, apparatus and electronic equipment of calling interface data Download PDF

Info

Publication number
CN108388424A
CN108388424A CN201810195587.4A CN201810195587A CN108388424A CN 108388424 A CN108388424 A CN 108388424A CN 201810195587 A CN201810195587 A CN 201810195587A CN 108388424 A CN108388424 A CN 108388424A
Authority
CN
China
Prior art keywords
target data
data
cache location
programming language
variety
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810195587.4A
Other languages
Chinese (zh)
Other versions
CN108388424B (en
Inventor
苏刚
余飞
高佳城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810195587.4A priority Critical patent/CN108388424B/en
Publication of CN108388424A publication Critical patent/CN108388424A/en
Application granted granted Critical
Publication of CN108388424B publication Critical patent/CN108388424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention provides a kind of method, apparatus and electronic equipment of calling interface data, belong to computer realm.The present invention can be in a variety of programming language code of the operation for same interface data, according to the mark for the target data for including in a variety of programming language codes, determine the corresponding target data of the mark of target data, the corresponding cache location of target data is determined again, and target data is stored to cache location, finally according to preset transfer algorithm, the target data that cache location stores is converted into the corresponding data of a variety of programming language codes.Utilize the technical solution of the application, when a variety of programming language codes access same target data simultaneously, each programming language code can obtain target data respectively from corresponding cache location, without obtaining original target data simultaneously, it in this way can be in the case where ensureing target data safety, it realizes a variety of programming language codes while accessing the demand of same target data, improve the efficiency of development.

Description

A kind of method, apparatus and electronic equipment of calling interface data
Technical field
The present invention relates to computer realm, more particularly to a kind of the method, apparatus and electronic equipment of calling interface data.
Background technology
In software development process, it is sometimes desirable to be programmed using a variety of programming languages, use a variety of programming languages During being programmed, it may appear that different programming language codes needs while accessing the demand of same interface data.
For example, when developing VR (Virtual Reality, virtual reality) product, it usually needs in Android platform and IOS A kind of java (programming languages are used on (Internetworking Operating System, network operating system) platform respectively Speech) and a kind of Objective-C (programming language, abbreviation OC) exploitation two-dimensional scenes, in Unity (a kind of title of development platform) On platform three-dimensional scenic is developed using C#.Since the program frame of VR products is typically to be write with C#, and C# codes are to insert The form of part accesses the interface data of C++ written in code, and the code that the safety lock for being set in advance in C# layers only has C# to write can Identification, C# layers of safety lock cannot be identified using the java codes write or the code write using OC.In order to ensure number of ports According to safety and program can normal operation, at present when developing VR products, the code usually only write with C# can access Interface data.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:Using existing The safety lock of technology setting, cannot support a variety of programming language codes while access the demand of same interface data, reduce out Send out the efficiency of product.
Invention content
The embodiment of the present invention is designed to provide a kind of method, apparatus and electronic equipment of calling interface data, with reality Existing a variety of programming language codes access the demand of same interface data simultaneously, improve the efficiency of development.Specific technical solution It is as follows:
In a first aspect, a kind of method of calling interface data is provided, the method includes:
In a variety of programming language code of the operation for same interface data, according in a variety of programming language codes Including target data mark, determine the corresponding target data of the mark of the target data;
It determines the corresponding cache location of the target data, and the target data is stored to the cache location;
According to preset transfer algorithm, the target data that the cache location stores is converted into a variety of programmings The corresponding data of language codes.
Optionally, the mark according to the target data for including in a variety of programming language codes, determines the mesh The corresponding target data of mark of data is marked, including:
Determine the classification logotype of the corresponding safety lock of mark of the target data;
The corresponding safety lock of the classification logotype is locked, the corresponding target data of the safety lock is obtained.
Optionally, after the corresponding target data of the acquisition safety lock, the method further includes:
Release the safety lock.
Optionally, the corresponding cache location of the determination target data, including:
According to memory space and category feature that the target data occupies, the corresponding cache bit of the target data is determined It sets.
Optionally, the cache bit is equipped with multiple, the corresponding cache location of the determination target data, including:
According to preset polling mode, the corresponding cache location of the target data is determined.
Second aspect, provides a kind of device of calling interface data, and described device includes:
First determining module is used in a variety of programming language code of the operation for same interface data, according to described The mark for the target data for including in a variety of programming language codes determines the corresponding target data of the mark of the target data;
Second determining module is stored for determining the corresponding cache location of the target data, and by the target data To the cache location;
Conversion module, for according to preset transfer algorithm, the target data that the cache location is stored to be converted At the corresponding data of a variety of programming language codes.
Optionally, first determining module, including:
Determination sub-module, the classification logotype of the corresponding safety lock of mark for determining the target data;
Acquisition submodule obtains the corresponding target of the safety lock for locking the corresponding safety lock of the classification logotype Data.
Optionally, described device further includes:
Module is released, for releasing the safety lock.
Optionally, second determining module, is specifically used for:
According to memory space and category feature that the target data occupies, the corresponding cache bit of the target data is determined It sets.
Optionally, the cache bit is equipped with multiple, and second determining module is specifically used for:
According to preset polling mode, the corresponding cache location of the target data is determined.
The third aspect, provides a kind of electronic equipment, the electronic equipment include processor, communication interface, memory and Communication bus, wherein the processor, the communication interface, the memory are completed each other by the communication bus Communication;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, is realized described in above-mentioned first aspect The method and step of any calling interface data.
Fourth aspect, in order to achieve the above object, the embodiment of the invention also discloses a kind of computer readable storage medium, It is stored with computer program in the computer readable storage medium, when the computer program is executed by processor, realizes such as The method and step of any calling interface data described in above-mentioned first aspect.
An embodiment of the present invention provides a kind of method, apparatus and electronic equipment of calling interface data, in operation for same When a variety of programming language codes of one interface data, according to the mark for the target data for including in a variety of programming language codes, really The corresponding target data of mark for the data that set the goal, then determine the corresponding cache location of target data, and target data is stored To cache location, finally according to preset transfer algorithm, the target data that cache location stores is converted into a variety of programming languages The corresponding data of code.
Using the technical solution of the application, it is (current interviewed that same target data is accessed simultaneously in a variety of programming language codes The interface data asked is properly termed as target data) when, each programming language code can obtain mesh respectively from corresponding cache location Data are marked, without obtaining original target data simultaneously, can be realized in this way in the case where ensureing target data safety A variety of programming language codes access the demand of same target data simultaneously, improve the efficiency of development.Certainly, implement this hair Bright any product or method are not necessarily required to reach all the above advantage simultaneously.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of method flow diagram of calling interface data provided in an embodiment of the present invention;
Fig. 2 is the flow signal of one kind of multiple programming language codes provided in an embodiment of the present invention while access interface data Figure;
Fig. 3 is a kind of apparatus structure schematic diagram of calling interface data provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
The embodiment of the invention discloses a kind of method, apparatus and electronic equipment of calling interface data, the embodiment of the present invention Executive agent can be terminal, be described in detail separately below.
As shown in Figure 1, it illustrates a kind of method flow diagram of calling interface data of the embodiment of the present invention, including it is as follows Step:
Step 101, in a variety of programming language code of the operation for same interface data, according to a variety of programming language generations The mark for the target data for including in code, determines the corresponding target data of the mark of target data.
In embodiments of the present invention, technical staff can store multiple interfaces in the terminal during development Data, for example, the multiple interface data write using C++.Wherein, the storage location and title of each interface data are unique, The storage location of interface data or name can be referred to as the mark of interface data by terminal, and each interface data is distinguished with this.
For technical staff when writing different programming language codes using a variety of programming languages, these programming language codes can To access same interface data simultaneously in a manner of multithreading.Terminal can be according to the number of targets for including in each programming language code According to the mark of (for the convenience of description, currently accessed interface data is known as target data), the mark of target data is determined Corresponding target data.
Step 102, it determines the corresponding cache location of target data, and target data is stored to cache location.
In embodiments of the present invention, terminal can deposit different target datas according to the classification or size of target data Store up corresponding cache location.For example, there are two interface data, an interface data includes 2GB (Gigabits, gigabyte) Album of songs, the classification of the interface data is album of songs, and size is 2GB;Another interface data includes the TV play of 3GB The classification of collection of drama, the interface data is TV drama series, and size is 3GB.If terminal determines mesh according to the classification of target data Marking the cache location of data, technical staff can preset the cache location of x1~x10 for storing album of songs, x11~ The cache location of x20 is for storing TV drama series, if the current target data for having 3 threads while accessing is the song of 2GB Bent album, terminal can first determine the classification of target data after obtaining target data, then according to preset target data with The correspondence of storage location randomly selects 3 storage locations for storing the target data from x1~x10.If terminal is pressed Determine that the cache location of target data, technical staff can preset the cache location of x21~x30 according to the size of target data For storing 10GB interface data below, the cache location of x31~x40 is used to store the interface data of 10GB or more, if The current target data for having 3 threads while accessing is the album of songs of 2GB, and terminal, can first really after obtaining target data The size for the data that set the goal is selected then according to the correspondence of preset target data and storage location from x21~x30 at random Take 3 storage locations for storing the target data.Terminal can also determine number of targets according to the classification and size of target data According to cache location, this method will be described in later.Each programming language code can be distinguished from corresponding cache location Target data is obtained, without obtaining original target data.It calling, changing so as to avoid some programming language code During original target data, the original target data that other programming language codes are called may be by some Programming language code is changed, the case where causing each programming programming language code to be not normally functioning.
Step 103, according to preset transfer algorithm, the target data that cache location stores is converted into a variety of programming languages The corresponding data of code.
In embodiments of the present invention, terminal is when running each programming language code, can be with when needing access target data From caching position acquisition target data, and according to preset transfer algorithm, the target data of cache location is converted into each programming The data that language codes can identify.For example, Java code can by preset JNI (Java native interface, Java local interfaces) target data is converted into Java character strings, OC codes can pass through function code Target data is converted into NSString (NextStep String, a kind of specific format by stringWithUTF8StringNull Character string), target data can be converted into C# character strings by C# codes by the form of plug-in unit.
The method of calling interface data provided in an embodiment of the present invention accesses same mesh simultaneously in a variety of programming language codes When marking data, each programming language code can obtain target data respectively from corresponding cache location, without obtaining simultaneously Original target data can be realized a variety of programming language codes while visiting in this way in the case where ensureing target data safety The demand for asking same target data improves the efficiency of development.
Optionally, terminal can first determine the classification logotype of the corresponding safety lock of mark of target data, and then locking should The corresponding safety lock of classification logotype, then obtain the corresponding target data of the safety lock.
In embodiments of the present invention, safety lock is arranged at data Layer (i.e. interface data layer), without in linguistic level (i.e. each volume Journey language codes layer), the moderate safety of thread granularity can be arranged in technical staff previously according to the classification and size of target data Lock, the mark of each target data have correspondence with the classification logotype of each safety lock.To when obtaining target data, eventually End can determine the classification logotype of corresponding safety lock according to the mark of target data, then lock the safety lock, and will be safe Target data in lock copies to cache location.
In scheme provided in an embodiment of the present invention, the effective range of safety lock can be pre-set, and safety lock is arranged In data Layer, the operational efficiency of programming language code can be improved with the management of optimized interface data in this way.
Optionally, terminal can also release safety lock after obtaining target data.
In embodiments of the present invention, terminal is after obtaining target data, can be in order to ensure the safety of target data Release safety lock.
Optionally, the memory space and category feature that terminal can be occupied according to target data determine that target data corresponds to Cache location.
In embodiments of the present invention, technical staff can be according to the memory space (i.e. size) and classification that target data occupies Feature pre-sets the correspondence of target data and cache location.For example, target data is the album of songs of 2GB, technology people Member can preset the cache location of x41~x50 for storing album of songs, wherein the album of songs less than 10GB stores In x41~x45, the album of songs more than 10GB is stored in x46~x50, and terminal, can first really after obtaining target data The size and category feature for the data that set the goal be after 2GB, classification are album of songs in the size for determining target data, further according to Access the total number of threads of the target data simultaneously, chosen from x41~x45 with the identical cache location of the sum, and by target Data copy to selected cache location respectively.The correspondence of target data and cache location can also be according to cache location Size further segment, for example, the memory space of x41~x50 gradually increases, technical staff can pre-set 0~1GB's Target data is stored in x41, and the target data of 1GB~2GB is stored in x42, and the target data of 2GB~3GB is stored in x43, with This mode is configured.In scheme provided in an embodiment of the present invention, terminal can according to target data occupy memory space and Category feature provides corresponding cache location, in this way can reasonable application cache space, optimize the storage management to target data.
Optionally, when the cache bit of target data is equipped with multiple, terminal can determine mesh according to preset polling mode Mark the corresponding cache location of data.
In embodiments of the present invention, the same target data can correspond to multiple cache locations, as shown in Fig. 2, number of targets It is A, B, C, D, E, F respectively according to corresponding 6 cache locations.Terminal is receiving the corresponding tune of 3 kinds of programming language codes for the first time When with instruction, target data can be copied in A, B, C, be called respectively for 3 kinds of programming language codes.Terminal connects for the second time When receiving the corresponding call instruction of 3 kinds of programming language codes, target data can be copied in D, E, F.When terminal third time When receiving the corresponding call instruction of 3 kinds of programming language codes, then target data is copied in A, B, C.Terminal is according to this The mode of poll stores target data to corresponding cache location.
In scheme provided in an embodiment of the present invention, the same target data can correspond to multiple cache locations, thus be avoided that When some thread replicates target data, the case where another thread removes target data, to ensure that each thread can Normal call target data.
Based on the same technical idea, embodiment of the method shown in FIG. 1 is corresponded to, the embodiment of the present invention additionally provides one kind The device of calling interface data, as shown in figure 3, the device includes:
First determining module 301 is used in a variety of programming language code of the operation for same interface data, according to institute The mark for stating the target data for including in a variety of programming language codes determines the corresponding number of targets of the mark of the target data According to;
Determining module 302 is arrived for determining the corresponding cache location of the target data, and by the target data storage The cache location;
Conversion module 303, for according to preset transfer algorithm, the target data that the cache location is stored to turn Change the corresponding data of a variety of programming language codes into.
The device of calling interface data provided in an embodiment of the present invention accesses same mesh simultaneously in a variety of programming language codes When marking data, each programming language code can obtain target data respectively from corresponding cache location, without obtaining simultaneously Original target data can be realized a variety of programming language codes while visiting in this way in the case where ensureing target data safety The demand for asking same target data improves the efficiency of development.Optionally, first determining module, including:
Determination sub-module, the classification logotype of the corresponding safety lock of mark for determining the target data;
Acquisition submodule obtains the corresponding target of the safety lock for locking the corresponding safety lock of the classification logotype Data.
In scheme provided in an embodiment of the present invention, the effective range of safety lock can be pre-set, and safety lock is arranged In data Layer, the operational efficiency of programming language code can be improved with the management of optimized interface data in this way.
Optionally, the described device further includes:
Module is released, for releasing the safety lock.
Optionally, second determining module, is specifically used for:
According to memory space and category feature that the target data occupies, the corresponding cache bit of the target data is determined It sets.
In scheme provided in an embodiment of the present invention, memory space and category feature that terminal can be occupied according to target data Corresponding cache location is provided, in this way can reasonable application cache space, optimize to the storage management of target data.
Optionally, the cache bit is equipped with multiple, and second determining module is specifically used for:
According to preset polling mode, the corresponding cache location of the target data is determined.
In scheme provided in an embodiment of the present invention, the same target data can correspond to multiple cache locations, thus be avoided that When some thread replicates target data, the case where another thread removes target data, to ensure that each thread can Normal call target data.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 4, including processor 401, communication interface 402, Memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 are complete by communication bus 404 At mutual communication;
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes tune provided in an embodiment of the present invention With the method for interface data.
Specifically, the method for above-mentioned calling interface data, including:
In a variety of programming language code of the operation for same interface data, according in a variety of programming language codes Including target data mark, determine the corresponding target data of the mark of the target data;
It determines the corresponding cache location of the target data, and the target data is stored to the cache location;
According to preset transfer algorithm, the target data that the cache location stores is converted into a variety of programmings The corresponding data of language codes.
The electronic equipment of calling interface data provided in an embodiment of the present invention accesses same simultaneously in a variety of programming language codes When one target data, each programming language code can obtain target data respectively from corresponding cache location, without simultaneously Original target data is obtained, can realize that a variety of programming language codes are same in the case where ensureing target data safety in this way When access the demand of same target data, improve the efficiency of development.
It should be noted that other realization methods of the method for above-mentioned calling interface data and preceding method embodiment part Identical, which is not described herein again.
The communication bus of above-mentioned electronic equipment can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), can also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that computer executes any institute in above-described embodiment The method for the calling interface data stated.
The computer readable storage medium of calling interface data provided in an embodiment of the present invention, in a variety of programming language codes When accessing same target data simultaneously, each programming language code can obtain target data respectively from corresponding cache location, and Original target data need not be obtained simultaneously, can realize a variety of programmings in the case where ensureing target data safety in this way Language codes access the demand of same target data simultaneously, improve the efficiency of development.
In another embodiment provided by the invention, a kind of computer program product including instruction is additionally provided, when it When running on computers so that the method that computer executes any calling interface data in above-described embodiment.
The computer program product of calling interface data provided in an embodiment of the present invention, a variety of programming language codes simultaneously When accessing same target data, each programming language code can obtain target data respectively from corresponding cache location, without Original target data is obtained simultaneously, can realize a variety of programming languages in the case where ensureing target data safety in this way Code accesses the demand of same target data simultaneously, improves the efficiency of development.In the above-described embodiments, can all or It is realized partially by software, hardware, firmware or its arbitrary combination.It when implemented in software, can be all or part of It realizes in the form of a computer program product on ground.The computer program product includes one or more computer instructions.It is counting When being loaded on calculation machine and executing the computer program instructions, entirely or partly generate according to the stream described in the embodiment of the present invention Journey or function.The computer can be all-purpose computer, special purpose computer, computer network or other programmable devices. The computer instruction can store in a computer-readable storage medium, or from a computer readable storage medium to another One computer readable storage medium transmission, for example, the computer instruction can be from web-site, computer, a service Device or data center by wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as it is infrared, wireless, Microwave etc.) mode is transmitted to another web-site, computer, server or data center.It is described computer-readable to deposit Storage media can be the clothes that any usable medium that computer can access either is integrated comprising one or more usable mediums The data storage devices such as business device, data center.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), Optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
An embodiment of the present invention provides a kind of method, apparatus and electronic equipment of calling interface data, are directed to by receiving The corresponding call instruction of a variety of programming language codes of same interface data, wherein include the mark of target data in call instruction Know, then according to the mark of target data, obtains the corresponding target data of call instruction, then determine the corresponding caching of target data Position, and target data is stored to cache location, finally according to preset transfer algorithm, the number of targets that cache location is stored According to being converted into the corresponding data of a variety of programming language codes.Using method provided by the invention, a variety of programming languages may be implemented Code accesses the demand of same interface data simultaneously, improves the efficiency of development.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.

Claims (11)

1. a kind of method of calling interface data, which is characterized in that the method includes:
In a variety of programming language code of the operation for same interface data, include according in a variety of programming language codes Target data mark, determine the corresponding target data of the mark of the target data;
It determines the corresponding cache location of the target data, and the target data is stored to the cache location;
According to preset transfer algorithm, the target data that the cache location stores is converted into a variety of programming languages The corresponding data of code.
2. according to the method described in claim 1, it is characterized in that, described include according in a variety of programming language codes The mark of target data determines the corresponding target data of the mark of the target data, including:
Determine the classification logotype of the corresponding safety lock of mark of the target data;
The corresponding safety lock of the classification logotype is locked, the corresponding target data of the safety lock is obtained.
3. according to the method described in claim 2, it is characterized in that, it is described obtain the corresponding target data of the safety lock it Afterwards, the method further includes:
Release the safety lock.
4. according to the method described in claim 1, it is characterized in that, the corresponding cache location of the determination target data, Including:
According to memory space and category feature that the target data occupies, the corresponding cache location of the target data is determined.
5. according to the method described in claim 1, it is characterized in that, the cache bit is equipped with multiple, the determination target The corresponding cache location of data, including:
According to preset polling mode, the corresponding cache location of the target data is determined.
6. a kind of device of calling interface data, which is characterized in that described device includes:
First determining module is used in a variety of programming language code of the operation for same interface data, according to described a variety of The mark for the target data for including in programming language code determines the corresponding target data of the mark of the target data;
Second determining module is stored for determining the corresponding cache location of the target data, and by the target data to institute State cache location;
Conversion module, for according to preset transfer algorithm, the target data that the cache location stores to be converted into institute State the corresponding data of a variety of programming language codes.
7. device according to claim 6, which is characterized in that first determining module, including:
Determination sub-module, the classification logotype of the corresponding safety lock of mark for determining the target data;
Acquisition submodule obtains the corresponding target data of the safety lock for locking the corresponding safety lock of the classification logotype.
8. device according to claim 7, which is characterized in that described device further includes:
Module is released, for releasing the safety lock.
9. device according to claim 6, which is characterized in that second determining module is specifically used for:
According to memory space and category feature that the target data occupies, the corresponding cache location of the target data is determined.
10. device according to claim 6, which is characterized in that the cache bit is equipped with multiple, the second determination mould Block is specifically used for:
According to preset polling mode, the corresponding cache location of the target data is determined.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes that processor, communication interface, memory and communication are total Line, wherein the processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any sides claim 1-5 Method step.
CN201810195587.4A 2018-03-09 2018-03-09 Method and device for calling interface data and electronic equipment Active CN108388424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810195587.4A CN108388424B (en) 2018-03-09 2018-03-09 Method and device for calling interface data and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810195587.4A CN108388424B (en) 2018-03-09 2018-03-09 Method and device for calling interface data and electronic equipment

Publications (2)

Publication Number Publication Date
CN108388424A true CN108388424A (en) 2018-08-10
CN108388424B CN108388424B (en) 2021-09-21

Family

ID=63066800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810195587.4A Active CN108388424B (en) 2018-03-09 2018-03-09 Method and device for calling interface data and electronic equipment

Country Status (1)

Country Link
CN (1) CN108388424B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791838A (en) * 2021-08-20 2021-12-14 深圳市元征科技股份有限公司 Program file calling method and device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050138282A1 (en) * 2003-12-18 2005-06-23 Garney John I. Maintaining disk cache coherency in multiple operating system environment
US20090044194A1 (en) * 2007-08-09 2009-02-12 Pradeep Kumar Rathi Multithreaded lock management
US20110131556A1 (en) * 2009-11-27 2011-06-02 International Business Machines Corporation Method, computer program and computer system for converting source code written in dynamically typed language into target code written in statically typed language and executing target code
US8407448B1 (en) * 2008-05-06 2013-03-26 Emc Corporation Shared storage I/O elimination through mapping client integration into a hypervisor
US20130103726A1 (en) * 2011-10-25 2013-04-25 Nokia Corporation Method and apparatus for providing offline binary data in a web environment
CN104252513A (en) * 2013-11-11 2014-12-31 新华瑞德(北京)网络科技有限公司 File caching device, system and method
CN104572568A (en) * 2013-10-15 2015-04-29 阿里巴巴集团控股有限公司 Read lock operation method, write lock operation method and system
CN105094830A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Method and device for executing target functions
CN105279103A (en) * 2015-09-29 2016-01-27 浪潮集团有限公司 Data management method and apparatus
CN106462407A (en) * 2014-05-16 2017-02-22 微软技术许可有限责任公司 Code service for language-independent dispatch
CN106970790A (en) * 2017-03-09 2017-07-21 腾讯科技(深圳)有限公司 Method, relevant device and system that a kind of application program is created

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050138282A1 (en) * 2003-12-18 2005-06-23 Garney John I. Maintaining disk cache coherency in multiple operating system environment
US20090044194A1 (en) * 2007-08-09 2009-02-12 Pradeep Kumar Rathi Multithreaded lock management
US8407448B1 (en) * 2008-05-06 2013-03-26 Emc Corporation Shared storage I/O elimination through mapping client integration into a hypervisor
US20110131556A1 (en) * 2009-11-27 2011-06-02 International Business Machines Corporation Method, computer program and computer system for converting source code written in dynamically typed language into target code written in statically typed language and executing target code
US20130103726A1 (en) * 2011-10-25 2013-04-25 Nokia Corporation Method and apparatus for providing offline binary data in a web environment
CN104572568A (en) * 2013-10-15 2015-04-29 阿里巴巴集团控股有限公司 Read lock operation method, write lock operation method and system
CN104252513A (en) * 2013-11-11 2014-12-31 新华瑞德(北京)网络科技有限公司 File caching device, system and method
CN106462407A (en) * 2014-05-16 2017-02-22 微软技术许可有限责任公司 Code service for language-independent dispatch
CN105094830A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Method and device for executing target functions
CN105279103A (en) * 2015-09-29 2016-01-27 浪潮集团有限公司 Data management method and apparatus
CN106970790A (en) * 2017-03-09 2017-07-21 腾讯科技(深圳)有限公司 Method, relevant device and system that a kind of application program is created

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
QIYUAN XING等: ""A User-Relationship-Based Cache Replacement Strategy for Mobile Social Network"", 《2015 NINTH INTERNATIONAL CONFERENCE ON FRONTIER OF COMPUTER SCIENCE AND TECHNOLOGY》 *
张凌晓 等: "《Visual C# 2010程序设计》", 30 June 2013, 中国铁道出版社 *
罗明胜: ""基于"云+端"模式的移动GIS平台架构设计研究"", 《科技创新导报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791838A (en) * 2021-08-20 2021-12-14 深圳市元征科技股份有限公司 Program file calling method and device and storage medium
CN113791838B (en) * 2021-08-20 2024-04-23 深圳市元征科技股份有限公司 Program file calling method, device and storage medium

Also Published As

Publication number Publication date
CN108388424B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US11151155B2 (en) Memory use in a distributed index and query system
US10261898B1 (en) Concurrent marking of location and shape changing objects
CN111737002B (en) Method, device and equipment for processing chained storage request and readable medium
JP5062909B2 (en) Copy files from one directory to another
US8984011B1 (en) Page object caching for variably sized access control lists in data storage systems
CN116501267B (en) Independent redundant disk array card control method and device
CN113568566A (en) Method, host device and storage server for seamless migration of simple storage service by using index object
CN111414228B (en) Method and related device for managing storage space based on Kubernetes
CN109376165A (en) The implementation method and device and computer readable storage medium of memory database lock
CN107291392A (en) A kind of solid state hard disc and its reading/writing method
CN114529417A (en) Method for executing transaction, block chain, main node and slave node
CN104598161A (en) Data reading and writing method and device and data storage structure
CN109213423A (en) Concurrent I/O command is handled without lock based on address barrier
CN109298888B (en) Queue data access method and device
CN112463058B (en) Fragmented data sorting method and device and storage node
CN108388424A (en) A kind of method, apparatus and electronic equipment of calling interface data
CN108628761B (en) Atomic command execution method and device
CN108958660A (en) Distributed memory system and its data processing method and device
CN106557383B (en) Data recovery method and device
WO2022002128A1 (en) Data reading method, data writing method, device, and system
US20180150257A1 (en) File System Streams Support And Usage
CN115098483A (en) Pre-execution cache data cleaning method and block link point
JP6333371B2 (en) Method for implementing bit arrays in cache lines
CN112068948B (en) Data hashing method, readable storage medium and electronic device
US9086895B1 (en) Controlling hardware driver selection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant