WO2017166759A1 - 缓存管理方法、装置、移动终端和电子设备 - Google Patents

缓存管理方法、装置、移动终端和电子设备 Download PDF

Info

Publication number
WO2017166759A1
WO2017166759A1 PCT/CN2016/100289 CN2016100289W WO2017166759A1 WO 2017166759 A1 WO2017166759 A1 WO 2017166759A1 CN 2016100289 W CN2016100289 W CN 2016100289W WO 2017166759 A1 WO2017166759 A1 WO 2017166759A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage space
finger
user
cache
image file
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.)
Ceased
Application number
PCT/CN2016/100289
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) 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 Le Holdings Beijing Co Ltd, Lemobile Information Technology (Beijing) Co Ltd filed Critical Le Holdings Beijing Co Ltd
Publication of WO2017166759A1 publication Critical patent/WO2017166759A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Definitions

  • the present application relates to the field of computer mobile terminal technologies, and in particular, to a cache management method, apparatus, mobile terminal, and electronic device.
  • the mobile terminal loads a new image file, it needs to allocate a certain buffer to the image control to display the image file. As the user slides the operation, the image file loaded by the mobile terminal will be more and more, and the more occupied. The more cache space is limited by the current mobile terminal's cache and processor processing power, which will cause the mobile terminal to run slowly, even crashes and crashes.
  • the technical problem to be solved by the present application is that the mobile terminal continuously loads the image file and occupies too much cache, which causes the mobile terminal to run slowly, even crashes and crashes.
  • the embodiment of the present application provides a cache management method, including: acquiring an image file; Determining whether the preset cache storage space is full; detecting the sliding direction of the user's finger on the screen when the cache storage space is full; releasing the cache storage space in the same direction as the user's finger sliding direction Storage space; loading the acquired image file into the released storage space and placing it in the cache tray storage space in the opposite direction to the direction in which the user's finger slides.
  • the step of releasing the storage space of the cache storage space in the same direction as the sliding direction of the user's finger includes: releasing the location when the user's finger is detected to be slipping The storage space at the top of the cache storage space; when detecting that the user's finger is sliding, releasing the storage space at the bottom of the cache storage space.
  • the acquired image file is loaded into the released storage space and placed in a front position of the cache storage space opposite to a sliding direction of the user's finger.
  • the step includes: when detecting that the user's finger is sliding, loading the acquired image file into the released storage space and placing it in the bottom of the cache storage space; when detecting that the user's finger is sliding, the acquired image is obtained.
  • the file is loaded into the freed storage space and placed at the top of the cache storage space.
  • the method further includes: loading the acquired image file into an empty cache storage space.
  • the image file is a bitmap format file.
  • the embodiment of the present application further provides a cache management apparatus, including: an obtaining unit, configured to acquire an image file; a determining unit, configured to determine whether a preset cache storage space is full; and a detecting unit, configured to be used by the determining unit When it is determined that the cache storage space is full, detecting a sliding direction of the user's finger on the screen; and releasing a unit for releasing the storage space of the cache storage space in the same direction as the sliding direction of the user's finger; And loading the acquired image file into the released storage space and placing it in a front position of the cache storage space opposite to a sliding direction of the user's finger.
  • the releasing unit includes: a first releasing unit, configured to release a storage space at an uppermost portion of the cache storage space when detecting that the user's finger is slipping; For releasing the cache storage when detecting that the user's finger is sliding down The storage space at the bottom of the space.
  • the loading unit includes: a first loading unit, configured to: when detecting that the user’s finger is slipping, load the acquired image file into the released storage space and put
  • the second release unit is configured to load the acquired image file into the released storage space and put it into the top of the cache storage space when detecting that the user's finger is sliding.
  • the image file is a bitmap format file.
  • the embodiment of the present application further provides a mobile terminal, including the cache management apparatus according to any one of the preceding claims.
  • An embodiment of the present application further provides an electronic device including at least one processor; and a memory communicably coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor The instruction is executed by the at least one processor to enable the at least one processor to acquire an image file; determine whether a preset cache storage space is full; and when the cache storage space is full, detect a user a sliding direction of the finger on the screen; releasing the storage space of the cache storage space in the same direction as the sliding direction of the user's finger; loading the acquired image file into the released storage space and placing the cache into the cache
  • the storage space has the most forward position in the opposite direction to the direction in which the user's finger slides.
  • the storage space that releases the cache storage space in the same direction as the sliding direction of the user's finger includes: when detecting that the user's finger is slipping, releasing the cache storage space at the top The storage space; when the user's finger is detected to slide down, the storage space at the bottom of the cache storage space is released.
  • the loading the acquired image file into the released storage space and placing it in the cache storage space in a direction opposite to a sliding direction of the user's finger includes: when detecting When the user's finger slides up, the acquired image file is loaded into the released storage space and placed in the bottom of the cache storage space; when the user's finger is detected to slide down, the acquired image file is loaded to be released. Storage space is placed at the top of the cache storage space.
  • the One less processor can also: load the acquired image file into an empty cache storage space.
  • the image file is a bitmap format file.
  • the embodiment of the present application further provides a non-volatile computer storage medium, the storage medium storing the computer-executable instructions of the computer-executable instructions, when executed by the electronic device, enabling the electronic device to acquire an image file; Whether the preset cache storage space is full; when the cache storage space is full, detecting the sliding direction of the user's finger on the screen; releasing the cache storage space in the same direction as the user's finger sliding direction a storage space; loading the acquired image file into the released storage space and placing it in a front position in a direction opposite to a direction in which the user's finger slides in the cache storage space.
  • the storage space that releases the cache storage space in the same direction as the sliding direction of the user's finger includes: when detecting that the user's finger is slipping, releasing the cache storage space at the top The storage space; when the user's finger is detected to slide down, the storage space at the bottom of the cache storage space is released.
  • the loading of the acquired image file into the released storage space and placing in the cache storage space in a direction opposite to a sliding direction of the user's finger includes: when detecting When the user's finger slides up, the acquired image file is loaded into the released storage space and placed in the bottom of the cache storage space; when the user's finger is detected to slide down, the acquired image file is loaded to be released. Storage space is placed at the top of the cache storage space.
  • the electronic device when the cache storage space is not full, the electronic device is further enabled to: load the acquired image file into an empty cache storage space.
  • the image file is a bitmap format file.
  • the embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer
  • the computer is caused to perform any of the above methods.
  • the cache management method, the device, the mobile terminal, the electronic device and the storage medium provided by the application the mobile terminal continuously releases the storage space of the cache storage space in the same direction as the sliding direction of the user's finger, and loads the acquired image file. Up to the released storage space and placed in the cache storage space in the opposite direction to the direction in which the user's finger slides, so that the mobile terminal always stores only a fixed number of image files regardless of how the user's finger slides or slides down. You can keep the cache from taking up too much and keep the mobile terminal running smoothly.
  • FIG. 1A illustrates a schematic diagram of a cache storage space according to an embodiment of the present application
  • FIG. 1B is a schematic diagram of the cache storage space of FIG. 1A after detecting a slip on a user's finger;
  • FIG. 1B is a schematic diagram of the cache storage space of FIG. 1A after detecting a slip on a user's finger;
  • FIG. 1C is a schematic diagram of the cache storage space of FIG. 1A after detecting that the user's finger is sliding;
  • FIG. 2A shows a flowchart of a cache management method according to an embodiment of the present application
  • FIG. 2B shows a specific flowchart of a cache management method according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a cache management apparatus according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram showing the hardware structure of an electronic device according to an embodiment of the present application.
  • connection or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection.
  • connection or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection.
  • FIG. 1A is a schematic diagram showing a cache storage space according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram showing n copies of cache space for sequentially loading image files 1, image files 2, ... image files n, n, respectively.
  • the size may be pre-factory set according to the size of the cache of the mobile terminal, or may be set by the user according to his own usage habits, for example, may be set to 100.
  • the cache management method provided by the embodiment of the present application is as shown in FIG. 2A, and the method can be applied to the hand.
  • Mobile terminal such as a computer or a tablet computer, the method includes the following steps:
  • step S12 Determine whether the preset cache storage space is full. That is, it is judged whether the cache storage space shown in FIG. 1A is already full, that is, whether n image files have been stored, and when not full, the acquired image files are sequentially loaded to the same as the existing cache management method. Empty cache storage space; when the cache storage space is full, step S13 is performed.
  • the mobile terminal When it is detected that the user's finger continues to slide up or down, the mobile terminal repeatedly performs steps S13 to S15 to sequentially release the storage space of the cache storage space in the same direction as the sliding direction of the user's finger, and load the acquired image file into the location.
  • the released storage space is sequentially placed in the cache storage space at the most forward position opposite to the sliding direction of the user's finger, so that only n image files are stored in the cache space, and the cache is not occupied, and the mobile terminal is kept running. Flow smooth.
  • the mobile terminal continuously releases the storage space of the cache storage space in the same direction as the sliding direction of the user's finger, and loads the acquired image file into the released storage space and puts the user into the cache storage space.
  • the finger slides in the opposite direction in the opposite direction, so that the mobile terminal always stores only a fixed number of image files regardless of how the user's finger slides or slides down, thereby keeping the cache from occupying too much and keeping the mobile terminal running smoothly.
  • the image file is a bitmap (bmp) format file, so that the mobile terminal can directly display when the file is opened, without opening the decoding operation, and more quickly.
  • the image file is not a bitmap format file, for example, a jpg format
  • the mobile terminal converts it into a bitmap format and loads the bitmap format file into the cache, whereby the file can be quickly opened.
  • the embodiment of the present application provides a cache management device, which is applicable to mobile terminals such as mobile phones and tablet computers.
  • the device includes:
  • the obtaining unit 21 is configured to acquire an image file.
  • the determining unit 22 is configured to determine whether the preset cache storage space is full. That is, it is judged whether the cache storage space shown in FIG. 1A is already full, that is, whether n image files have been stored, and when not full, the acquired image files are sequentially loaded to the same as the existing cache management method. Empty cache storage space.
  • the detecting unit 23 is configured to detect a sliding direction of the user's finger on the screen when the determining unit 22 determines that the cache storage space is full. When the user's finger slides up, the image file that has not been displayed before will be displayed on the screen of the mobile terminal. When the user's finger slides down, the user can look back at the previously displayed image file on the screen of the mobile terminal.
  • the release unit 24 is configured to release the storage space of the cache storage space in the same direction as the sliding direction of the user's finger.
  • the loading unit 25 is configured to load the acquired image file into the released storage space and put it into a front position of the cache storage space opposite to the sliding direction of the user's finger.
  • the release unit 24 and the loading unit 25 repeat the sequential operation, sequentially releasing the cache storage space in the same direction as the user's finger sliding direction.
  • the storage space is loaded into the released storage space and sequentially placed in the cache storage space at the front position opposite to the sliding direction of the user's finger, so that only n image files are stored in the cache space. Do not take up too much cache, keep the mobile terminal running smoothly.
  • the mobile terminal continuously releases the storage space of the cache storage space in the same direction as the sliding direction of the user's finger, and loads the acquired image file into the released storage space and puts the user into the cache storage space.
  • the finger slides in the opposite direction in the opposite direction, so that the mobile terminal always stores only a fixed number of image files regardless of how the user's finger slides or slides down, thereby keeping the cache from occupying too much and keeping the mobile terminal running smoothly.
  • the release unit 24 can include:
  • the first release unit is configured to release the storage space at the top of the cache storage space when the user's finger is slid, as shown in FIG. 1B, that is, the storage space occupied by the image file 1 is released;
  • the second release unit is configured to release the storage space at the bottom of the cache storage space when detecting that the user's finger is sliding. For details, refer to FIG. 1C, that is, the storage space occupied by the image file n is released.
  • the loading unit 25 can include:
  • the first loading unit is configured to load the acquired image file into the released storage space and put it into the bottom of the cache storage space when the user's finger is slid up. For details, see FIG. 1B, the image to be acquired.
  • the file n+1 is loaded into the released storage space and placed under the cache storage space occupied by the storage image file n;
  • the second release unit is configured to load the acquired image file into the released storage space and put it into the top of the cache storage space when detecting that the user's finger is sliding. For details, see FIG. 1C, the image file to be acquired. 0 is loaded into the released storage space and placed above the cache storage space occupied by the storage image file 1.
  • the image file is a bitmap (bmp) format file, so that the mobile terminal can directly display when the file is opened, without opening the decoding operation, and more quickly.
  • the image file is not a bitmap format file, for example, a jpg format
  • the mobile terminal converts the bitmap file into a bitmap format, and loads the bitmap format file into the cache, thereby quickly playing Open the file.
  • the embodiment of the present application further provides a mobile terminal, which includes the cache management device as described above, so that the mobile terminal can continuously release the storage space of the cache storage space in the same direction as the sliding direction of the user's finger, and obtain the storage space.
  • the image file is loaded into the released storage space and placed in the cache storage space at the front position opposite to the sliding direction of the user's finger, so that the mobile terminal always stores only a fixed number of images regardless of how the user's finger slides or slides down. Files, which can keep the cache from taking up too much and keep the mobile terminal running smoothly.
  • the present application further provides an electronic device including at least one processor 810; and a memory 800 communicably coupled to the at least one processor 810; wherein the memory 800 stores Executing instructions executed by at least one processor 810, the instructions being executed by the at least one processor 810 to enable the at least one processor 810 to acquire an image file; determining whether a preset cache storage space is full; When the cache storage space is full, detecting the sliding direction of the user's finger on the screen; releasing the storage space of the cache storage space in the same direction as the sliding direction of the user's finger; loading the acquired image file into the storage space The released storage space is placed in the most forward position of the cache storage space in the opposite direction to the sliding direction of the user's finger.
  • the electronic device also includes an input device 830 and an output device 840 that are electrically coupled to the memory 800 and the processor, the electrical connections preferably being connected by a bus.
  • the storage space that releases the cache storage space in the same direction as the sliding direction of the user's finger includes: releasing the cache when detecting that the user's finger is slipping The storage space at the top of the storage space; when the user's finger is detected to slide down, the storage space at the bottom of the cache storage space is released.
  • the image file that is acquired is loaded into the released storage space and placed in a front position of the cache storage space opposite to a sliding direction of the user's finger.
  • the acquired image file is loaded into the released storage space and placed in the bottom of the cache storage space; when the user's finger is detected to slide down, the acquired image file is loaded. Go to the released storage space and put it at the top of the cache storage space.
  • the at least one processor is further enabled to load the acquired image file into an empty cache memory space.
  • the image file is a bitmap format file.
  • the embodiment of the present application further provides a non-volatile computer storage medium, the storage medium storing the computer-executable instructions of the computer-executable instructions, when executed by the electronic device, enabling the electronic device to acquire an image file; Whether the preset cache storage space is full; when the cache storage space is full, detecting the sliding direction of the user's finger on the screen; releasing the cache storage space in the same direction as the user's finger sliding direction a storage space; loading the acquired image file into the released storage space and placing it in a front position in a direction opposite to a direction in which the user's finger slides in the cache storage space.
  • the storage space that releases the cache storage space in the same direction as the sliding direction of the user's finger includes: releasing the cache when detecting that the user's finger is slipping The storage space at the top of the storage space; when the user's finger is detected to slide down, the storage space at the bottom of the cache storage space is released.
  • the image file is loaded into the released storage space and placed in the cache storage space at a position that is opposite to the sliding direction of the user's finger.
  • the acquired image file is loaded into the released storage space and placed in the bottom of the cache storage space; when the user's finger is detected to slide down, the acquired image file is loaded. Go to the released storage space and put it at the top of the cache storage space.
  • the electronic device when the cache storage space is not full, is further capable of: loading the acquired image file into an empty cache storage space.
  • the image file is a bitmap format file.
  • the embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer
  • the computer is caused to perform any of the above methods.
  • embodiments of the present application can be provided as a method, system, or computer program product. Therefore, the present application can adopt an entirely hardware embodiment, completely soft An embodiment, or a combination of software and hardware aspects.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephone Function (AREA)

Abstract

一种缓存管理方法、装置、移动终端和电子设备,涉及计算机移动终端技术领域,其中所述方法包括:获取图像文件(S11);判断预设缓存存储空间是否已存满(S12);当所述缓存存储空间已存满时,判断用户手指滑动方向(S13);释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间(S14);将所获取的图像文件加载到所释放出的存储空间并放入缓存存储空间的与用户手指滑动方向相反方向上最靠前位置(S15)。由此,不管用户手指如何上滑或下滑,移动终端始终只存储固定数量的图像文件,从而可以保持缓存不会占用过多,保持移动终端运行流畅。

Description

缓存管理方法、装置、移动终端和电子设备
交叉引用
本申请为在2016年04月01日提交中国专利局、申请号为201610204174.9、发明名称为“缓存管理方法、装置和移动终端”的中国专利申请的继续申请,本申请要求在2016年04月01日提交中国专利局、申请号为201610204174.9、发明名称为“缓存管理方法、装置和移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机移动终端技术领域,具体涉及缓存管理方法、装置、移动终端和电子设备。
背景技术
在移动互联网时代,用户越来越习惯于用手机等移动终端来浏览照片、带有图像文件的网页等,用户可以在移动终端上进行上滑操作,这样照片和网页会向上滚动,然后下方的图像文件不断显示出来,用户就可以很方便地浏览图像文件。
然而,移动终端每加载一个新的图像文件,都需要给图像控件分配一定的缓存以便能够显示该图像文件,随着用户不断滑动操作,移动终端加载的图像文件就会越来越多,占用越来越多的缓存空间,受限于目前移动终端的缓存和处理器的处理能力,这样会导致移动终端运行缓慢,甚至于死机、崩溃。
发明内容
本申请要解决的技术问题在于移动终端不断加载图像文件会占用过多缓存,导致移动终端运行缓慢,甚至于死机、崩溃。
为此,本申请实施例提供了一种缓存管理方法,包括:获取图像文件; 判断预设缓存存储空间是否已存满;当所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
本申请实施例所述的方法,优选地,所述释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间的步骤包括:当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
本申请实施例所述的方法,优选地,所述将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置的步骤包括:当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
本申请实施例所述的方法,优选地,当所述缓存存储空间未存满时,所述方法还包括:将所获取的图像文件加载到空的缓存存储空间。
本申请实施例所述的方法,优选地,所述图像文件是位图格式文件。
本申请实施例还提供了一种缓存管理装置,包括:获取单元,用于获取图像文件;判断单元,用于判断预设缓存存储空间是否已存满;检测单元,用于当所述判断单元判断所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;释放单元,用于释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;加载单元,用于将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
本申请实施例所述的装置,优选地,所述释放单元包括:第一释放单元,用于当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;第二释放单元,用于当检测到用户手指下滑时,释放所述缓存存储 空间最下方的存储空间。
本申请实施例所述的装置,优选地,所述加载单元包括:第一加载单元,用于当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;第二释放单元,用于当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
本申请实施例所述的装置,优选地,所述图像文件是位图格式文件。
本申请实施例还提供了一种移动终端,包括上述任一项所述的缓存管理装置。
本申请实施例还提供了一种电子设备,包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够获取图像文件;判断预设缓存存储空间是否已存满;当所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
上述的电子设备,优选地,所述释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间包括:当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
上述的电子设备,优选地,所述将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置包括:当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
上述的电子设备,优选地,当所述缓存存储空间未存满时,使所述至 少一个处理器还能够:将所获取的图像文件加载到空的缓存存储空间。
上述的电子设备,优选地,所述图像文件是位图格式文件。
本申请实施例还提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够获取图像文件;判断预设缓存存储空间是否已存满;当所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
上述的存储介质,优选地,所述释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间包括:当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
上述的存储介质,优选地,所述将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置包括:当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
上述的存储介质,优选地,当所述缓存存储空间未存满时,使得电子设备还能够:将所获取的图像文件加载到空的缓存存储空间。
上述的存储介质,优选地,所述图像文件是位图格式文件。
本申请实施例还提出了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一种方法。
本申请所提供的缓存管理方法、装置、移动终端和电子设备及存储介质,移动终端不断释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间,并将获取的图像文件加载到所释放出的存储空间并放入缓存存储空间的与用户手指滑动方向相反方向上最靠前位置,从而不管用户手指如何上滑或下滑,移动终端始终只存储固定数量的图像文件,由此可以保持缓存不会占用过多,保持移动终端运行流畅。
附图说明
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
通过参考附图会更加清楚的理解本申请的特征和优点,附图是示意性的而不应理解为对本申请进行任何限制,在附图中:
图1A示出了根据本申请实施例的缓存存储空间示意图;
图1B示出了图1A的缓存存储空间在检测到用户手指上滑后的示意图;
图1C示出了图1A的缓存存储空间在检测到用户手指下滑后的示意图;
图2A示出了根据本申请实施例的缓存管理方法的流程图;
图2B示出了根据本申请实施例的缓存管理方法的具体流程图;
图3示出了根据本申请实施例的缓存管理装置的示意图;
图4示出了根据本申请实施例中电子设备的硬件结构示意图。
具体实施方式
下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然, 所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在本申请的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,还可以是两个元件内部的连通,可以是无线连接,也可以是有线连接。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。
此外,下面所描述的本申请不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。
下面将结合附图对本申请的实施例进行详细描述。
图1A示出了根据本申请实施例的缓存存储空间示意图,图中示意性地示出了n份缓存空间,用于分别顺序加载图像文件1、图像文件2、……图像文件n,n的大小可以根据移动终端所带缓存的大小而预先出厂设定,也可以由用户根据自己的使用习惯自行设定,例如可以设定为100。
本申请实施例提供的缓存管理方法如图2A所示,该方法可以适用于手 机、平板电脑等移动终端,该方法包括如下步骤:
S11.获取图像文件。
S12.判断预设缓存存储空间是否已存满。即判断图1A中所示的缓存存储空间是否已经存满,即是否已经存储了n个图像文件,当未存满时,和现有的缓存管理方法相同,将所获取的图像文件顺序加载到空的缓存存储空间;当缓存存储空间已存满时,则执行步骤S13。
S13.检测用户手指在屏幕上的滑动方向。当用户手指上滑时,移动终端屏幕上会显示出之前未显示过的图像文件,当用户手指下滑时,用户就可以在移动终端屏幕上回看之前显示过的图像文件。
S14.释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间。具体地,当检测到用户手指上滑时,具体参见图1B和图2B,释放缓存存储空间最上方的存储空间,即释放图像文件1所占用的存储空间;当检测到用户手指下滑时,具体参见图1C和图2B,释放缓存存储空间最下方的存储空间,即释放图像文件n所占用的存储空间。
S15.将获取的图像文件加载到所释放出的存储空间并放入缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。具体地,当检测到用户手指上滑时,具体参见图1B和图2B,将获取的图像文件加载到所释放出的存储空间并放入缓存存储空间最下方,即将获取的图像文件n+1加载到所释放出的存储空间,并放在存储图像文件n所占用的缓存存储空间下方;当检测到用户手指下滑时,具体参见图1C和图2B,将获取的图像文件加载到所释放出的存储空间并放入缓存存储空间最上方,即将获取的图像文件0加载到所释放出的存储空间,并放在存储图像文件1所占用的缓存存储空间上方。
当检测到用户手指继续上滑或下滑时,移动终端重复执行步骤S13至S15,顺序释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间,将获取的图像文件加载到所释放出的存储空间并顺序放入缓存存储空间的与用户手指滑动方向相反方向上最靠前位置,从而一直保持缓存空间中只存储n个图像文件,不至于占用过多缓存,保持移动终端运行流 畅。
通过上述步骤,移动终端不断释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间,并将获取的图像文件加载到所释放出的存储空间并放入缓存存储空间的与用户手指滑动方向相反方向上最靠前位置,从而不管用户手指如何上滑或下滑,移动终端始终只存储固定数量的图像文件,由此可以保持缓存不会占用过多,保持移动终端运行流畅。
作为一种优选实施方式,图像文件是位图(bmp)格式文件,这样移动终端在打开该文件时可以直接显示,而无需解码操作,打开更为迅速。优选地,当图像文件不是位图格式文件时,例如为jpg格式时,移动终端将其转换成位图格式,并将该位图格式文件加载到缓存中,由此即可以迅速打开该文件。
相应地,本申请实施例提供了一种缓存管理装置,该装置适用于手机、平板电脑等移动终端,如图3所示,该装置包括:
获取单元21,用于获取图像文件。
判断单元22,用于判断预设缓存存储空间是否已存满。即判断图1A中所示的缓存存储空间是否已经存满,即是否已经存储了n个图像文件,当未存满时,和现有的缓存管理方法相同,将所获取的图像文件顺序加载到空的缓存存储空间。
检测单元23,用于当判断单元22判断缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向。当用户手指上滑时,移动终端屏幕上会显示出之前未显示过的图像文件,当用户手指下滑时,用户就可以在移动终端屏幕上回看之前显示过的图像文件。
释放单元24,用于释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间。
加载单元25,用于将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
当用户手指继续上滑或下滑时,释放单元24和加载单元25重复顺序工作,顺序释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的 存储空间,将获取的图像文件加载到所释放出的存储空间并顺序放入缓存存储空间的与用户手指滑动方向相反方向上最靠前位置,从而一直保持缓存空间中只存储n个图像文件,不至于占用过多缓存,保持移动终端运行流畅。
通过上述装置,移动终端不断释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间,并将获取的图像文件加载到所释放出的存储空间并放入缓存存储空间的与用户手指滑动方向相反方向上最靠前位置,从而不管用户手指如何上滑或下滑,移动终端始终只存储固定数量的图像文件,由此可以保持缓存不会占用过多,保持移动终端运行流畅。
其中,释放单元24可以包括:
第一释放单元,用于当检测到用户手指上滑时,释放缓存存储空间最上方的存储空间,具体参见图1B,即释放图像文件1所占用的存储空间;
第二释放单元,用于当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间,具体参见图1C,即释放图像文件n所占用的存储空间。
其中,加载单元25可以包括:
第一加载单元,用于当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方,具体参见图1B,即将获取的图像文件n+1加载到所释放出的存储空间,并放在存储图像文件n所占用的缓存存储空间下方;
第二释放单元,用于当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方,具体参见图1C,即将获取的图像文件0加载到所释放出的存储空间,并放在存储图像文件1所占用的缓存存储空间上方。
作为一种优选实施方式,图像文件是位图(bmp)格式文件,这样移动终端在打开该文件时可以直接显示,而无需解码操作,打开更为迅速。优选地,当图像文件不是位图格式文件时,例如为jpg格式时,移动终端将其转换成位图格式,并将该位图格式文件加载到缓存中,由此即可以迅速打 开该文件。
本申请实施例还提供了一种移动终端,其包括如上所述的缓存管理装置,从而移动终端可以不断释放缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间,并将获取的图像文件加载到所释放出的存储空间并放入缓存存储空间的与用户手指滑动方向相反方向上最靠前位置,从而不管用户手指如何上滑或下滑,移动终端始终只存储固定数量的图像文件,由此可以保持缓存不会占用过多,保持移动终端运行流畅。
如图4所示,本申请还提供了一种电子设备,包括至少一个处理器810;以及,与所述至少一个处理器810通信连接的存储器800;其中,所述存储器800存储有可被所述至少一个处理器810执行的指令,所述指令被所述至少一个处理器810执行,以使所述至少一个处理器810能够获取图像文件;判断预设缓存存储空间是否已存满;当所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。所述电子设备还包括与所述存储器800和所述处理器电连接的输入装置830和输出装置840,所述电连接优选为通过总线连接。
本实施例的所述电子设备,优选地,所述释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间包括:当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
本实施例的所述电子设备,优选地,所述将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置包括:当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
本实施例的所述电子设备,优选地,当所述缓存存储空间未存满时, 使所述至少一个处理器还能够将所获取的图像文件加载到空的缓存存储空间。
本实施例的所述电子设备,优选地,所述图像文件是位图格式文件。
本申请实施例还提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够获取图像文件;判断预设缓存存储空间是否已存满;当所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
本实施例的所述存储介质,优选地,所述释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间包括:当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
本实施例的所述存储介质,优选地,所述将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置包括:当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
本实施例的所述存储介质,优选地,当所述缓存存储空间未存满时,使得电子设备还能够:将所获取的图像文件加载到空的缓存存储空间。
本实施例的所述存储介质,优选地,所述图像文件是位图格式文件。
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一种方法。本领域内的技术人员还应理解,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软 件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的,应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。

Claims (21)

  1. 一种缓存管理方法,其特征在于,包括:
    获取图像文件;
    判断预设缓存存储空间是否已存满;
    当所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;
    释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;
    将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
  2. 根据权利要求1所述的缓存管理方法,其特征在于,所述释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间的步骤包括:
    当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;
    当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
  3. 根据权利要求1所述的缓存管理方法,其特征在于,所述将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置的步骤包括:
    当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;
    当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
  4. 根据权利要求1所述的缓存管理方法,其特征在于,当所述缓存存储空间未存满时,所述方法还包括:
    将所获取的图像文件加载到空的缓存存储空间。
  5. 根据权利要求1-4中任一项所述的缓存管理方法,其特征在于,所述图像文件是位图格式文件。
  6. 一种缓存管理装置,其特征在于,包括:
    获取单元,用于获取图像文件;
    判断单元,用于判断预设缓存存储空间是否已存满;
    检测单元,用于当所述判断单元判断所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;
    释放单元,用于释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;
    加载单元,用于将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
  7. 根据权利要求6所述的缓存管理装置,其特征在于,所述释放单元包括:
    第一释放单元,用于当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;
    第二释放单元,用于当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
  8. 根据权利要求6所述的缓存管理装置,其特征在于,所述加载单元包括:
    第一加载单元,用于当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;
    第二释放单元,用于当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
  9. 根据权利要求6-8中任一项所述的缓存管理装置,其特征在于,所述图像文件是位图格式文件。
  10. 一种移动终端,其特征在于,包括权利要求6-9中任一项所述的缓存管理装置。
  11. 一种电子设备,其特征在于包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所 述至少一个处理器能够:
    获取图像文件;
    判断预设缓存存储空间是否已存满;
    当所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;
    释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;
    将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
  12. 根据权利要求11所述的电子设备,其特征在于,所述释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间包括:
    当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;
    当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
  13. 根据权利要求11所述的电子设备,其特征在于,所述将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置包括:
    当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;
    当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
  14. 根据权利要求11所述的电子设备,其特征在于,当所述缓存存储空间未存满时,使所述至少一个处理器还能够:
    将所获取的图像文件加载到空的缓存存储空间。
  15. 根据权利要求11-14所述的电子设备,其特征在于,所述图像文件是位图格式文件。
  16. 一种非易失性计算机存储介质,其特征在于:所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够:
    获取图像文件;
    判断预设缓存存储空间是否已存满;
    当所述缓存存储空间已存满时,检测用户手指在屏幕上的滑动方向;
    释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间;
    将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置。
  17. 根据权利要求16所述的存储介质,其特征在于,所述释放所述缓存存储空间的与用户手指滑动方向相同方向上最靠前的存储空间包括:
    当检测到用户手指上滑时,释放所述缓存存储空间最上方的存储空间;
    当检测到用户手指下滑时,释放所述缓存存储空间最下方的存储空间。
  18. 根据权利要求16所述的存储介质,其特征在于,所述将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间的与用户手指滑动方向相反方向上最靠前位置包括:
    当检测到用户手指上滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最下方;
    当检测到用户手指下滑时,将所获取的图像文件加载到所释放出的存储空间并放入所述缓存存储空间最上方。
  19. 根据权利要求16所述的存储介质,其特征在于,当所述缓存存储空间未存满时,使得电子设备还能够:
    将所获取的图像文件加载到空的缓存存储空间。
  20. 根据权利要求16-19所述的存储介质,其特征在于,所述图像文件是位图格式文件。
  21. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,其特征在于,当所述程序指令被计算机执行时,使所述计算机执行上述任一权利要求所述的方法。
PCT/CN2016/100289 2016-04-01 2016-09-27 缓存管理方法、装置、移动终端和电子设备 Ceased WO2017166759A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610204174.9 2016-04-01
CN201610204174.9A CN105912251A (zh) 2016-04-01 2016-04-01 缓存管理方法、装置和移动终端

Publications (1)

Publication Number Publication Date
WO2017166759A1 true WO2017166759A1 (zh) 2017-10-05

Family

ID=56744587

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100289 Ceased WO2017166759A1 (zh) 2016-04-01 2016-09-27 缓存管理方法、装置、移动终端和电子设备

Country Status (2)

Country Link
CN (1) CN105912251A (zh)
WO (1) WO2017166759A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228759A (zh) * 2017-12-22 2018-06-29 金蝶软件(中国)有限公司 记录集的存储处理方法、装置、计算机设备和存储介质
CN113254211A (zh) * 2021-06-01 2021-08-13 广州小鹏汽车科技有限公司 缓存分配方法、装置、电子设备及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912251A (zh) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 缓存管理方法、装置和移动终端
CN109542304B (zh) * 2018-11-22 2021-03-02 北京字节跳动网络技术有限公司 显示内容的加载方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831111A (zh) * 2011-06-14 2012-12-19 腾讯科技(深圳)有限公司 一种图片显示方法和装置
US20130162664A1 (en) * 2010-09-03 2013-06-27 Adobe Systems Incorporated Reconstructable digital image cache
CN103677942A (zh) * 2013-12-30 2014-03-26 Tcl集团股份有限公司 一种移动终端浏览网络图片的方法和装置
CN104657378A (zh) * 2013-11-20 2015-05-27 青岛海信移动通信技术股份有限公司 一种文件缓存方法及装置
CN105912251A (zh) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 缓存管理方法、装置和移动终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267918B (zh) * 2014-09-17 2017-09-29 深圳市九洲电器有限公司 一种图片显示方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130162664A1 (en) * 2010-09-03 2013-06-27 Adobe Systems Incorporated Reconstructable digital image cache
CN102831111A (zh) * 2011-06-14 2012-12-19 腾讯科技(深圳)有限公司 一种图片显示方法和装置
CN104657378A (zh) * 2013-11-20 2015-05-27 青岛海信移动通信技术股份有限公司 一种文件缓存方法及装置
CN103677942A (zh) * 2013-12-30 2014-03-26 Tcl集团股份有限公司 一种移动终端浏览网络图片的方法和装置
CN105912251A (zh) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 缓存管理方法、装置和移动终端

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228759A (zh) * 2017-12-22 2018-06-29 金蝶软件(中国)有限公司 记录集的存储处理方法、装置、计算机设备和存储介质
CN108228759B (zh) * 2017-12-22 2021-07-27 金蝶软件(中国)有限公司 记录集的存储处理方法、装置、计算机设备和存储介质
CN113254211A (zh) * 2021-06-01 2021-08-13 广州小鹏汽车科技有限公司 缓存分配方法、装置、电子设备及存储介质
CN113254211B (zh) * 2021-06-01 2023-04-07 广州小鹏汽车科技有限公司 缓存分配方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN105912251A (zh) 2016-08-31

Similar Documents

Publication Publication Date Title
KR102476235B1 (ko) 전자 장치 및 이의 제어 방법
US11847292B2 (en) Method of processing content and electronic device thereof
EP2990930B1 (en) Scraped information providing method and apparatus
KR102252072B1 (ko) 음성 태그를 이용한 이미지 관리 방법 및 그 장치
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
US20150020013A1 (en) Remote operation of applications using received data
WO2016101757A1 (zh) 一种基于移动设备的图片处理方法和装置
CN105183837B (zh) 一种移动终端的缩略图列表视图显示方法及系统
KR102252448B1 (ko) 제어 방법 및 그 방법을 처리하는 전자장치
CN108958635A (zh) 显示结束效果的移动设备及其控制方法
CN108475110A (zh) 用于控制内容的方法及其电子设备
US20170139554A1 (en) Electronic apparatus and display control method
CN103677517B (zh) 一种图片查找方法和装置
US20150106761A1 (en) Information processing apparatus, method for controlling the information processing apparatus, and storage medium
CN106708478B (zh) 滚动视图显示方法及装置
WO2016150104A1 (zh) 应用主题的加载方法及装置
US20170205980A1 (en) Method and an apparatus for providing a multitasking view
EP2824561A1 (en) Electronic device and method for changing order or location of content
CN105989158A (zh) 一种截图的区分方法和设备
KR20190081701A (ko) 사진촬영에 음악을 링크하는 전자 장치 및 이의 제어 방법
CN105096236A (zh) 一种图片的缩略图加载方法及电子设备
JP6412651B2 (ja) タスクディスプレイ方法、装置、プログラムおよび記録媒体
TWI483171B (zh) 檔案管理系統及方法
KR20180020381A (ko) 전자 장치 및 전자 장치 제어 방법
WO2018000655A1 (zh) 富文本编辑方法、装置、移动终端和电子设备

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16896529

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896529

Country of ref document: EP

Kind code of ref document: A1