IP Library Granted Patent US 10,922,236
Granted Patent B2
US 10,922,236 · App. 16/811,590 · Granted Feb 16, 2021

Cascade cache refreshing

Inventor: Yangyang Zhao (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
G06F12/0891G06F12/0811G06F12/0815G06F12/0893
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,922,236
App. No.
16/811,590
Granted
Feb 16, 2021
Kind
B2
Abstract

The present application discloses a cascade cache refreshing method, system, and device. The method in an embodiment of the present specification includes: determining a cache refreshing sequence based on a dependency relationship between caches in a cascade cache; and sequentially determining, based on the cache refreshing sequence, whether the caches in the cascade cache need to be refreshed, and refreshing a cache that needs to be refreshed, where when it is determined that a current cache needs to be refreshed, it is determined whether a cache following the current cache in the cache refreshing sequence needs to be refreshed after the current cache is refreshed.

Claims (81)

1. A computer-implemented method for refreshing a cascade cache, the method comprising:

obtaining a dependency relationship between a plurality of caches in the cascade cache;

determining, based on the dependency relationship, one or more cache priorities, wherein a particular cache that does not depend on any other cache has a higher priority than another cache that depends on a different cache;

determining, based on the cache priorities, a cache refreshing sequence associated with the plurality of caches in the cascade cache;

determining, based on the cache refreshing sequence, that a first cache of the plurality of caches is to be refreshed; and

responsive to determining that the first cache is to be refreshed, refreshing the first cache; and determining whether a second cache of the plurality of caches, the second cache following the first cache in the cache refreshing sequence, is to be refreshed after the first cache is refreshed.

2. The computer-implemented method of claim 1 , further comprising sequentially determining whether each cache in the cascade cache is to be refreshed.

3. The computer-implemented method of claim 1 , wherein the method further comprises:

detecting whether a circular dependency conflict exists, wherein the dependency relationship is used to detect whether the second cache is dependent upon itself;

responsive to detecting that the circular dependency conflict exists, terminating cache refreshing; and

responsive to detecting that the circular dependency conflict does not exist, continuing refreshing the cascade cache in accordance with the dependency relationship.

4. The computer-implemented method of claim 1 , wherein determining the first cache is to be refreshed comprises:

determining the first cache is not externally triggered to be refreshed.

5. The computer-implemented method of claim 4 further comprising:

responsive to determining the first cache is not externally triggered to be refreshed, determining, based on a cache that the first cache depends on, whether the first cache is to be refreshed.

6. The computer-implemented method of claim 1 , wherein determining the first cache is to be refreshed comprises:

determining the first cache is externally triggered to be refreshed.

7. The computer-implemented method of claim 6 wherein determining the first cache is externally triggered to be refreshed comprises determining the first cache has a refreshing tag corresponding to an external trigger, and the method further comprises:

responsive to determining the first cache has the refreshing tag corresponding to the external trigger, refreshing the first cache, and

canceling the refreshing tag after refreshing the first cache.

8. The computer-implemented method of claim 1 , wherein determining the first cache is to be refreshed comprises:

determining, based on a third cache that the first cache depends on, the first cache is to be refreshed.

9. The computer-implemented method of claim 8 , wherein determining, based on the third cache that the first cache depends on, the first cache is to be refreshed comprises:

determining that a refreshing time of the third cache is later than a refreshing time of the first cache;

determining, based on the dependency relationship, that the first cache depends on the third cache; and

determining, based on determining that the refreshing time of the third cache is later than the refreshing time of the first cache and, based on the dependency relationship, that the first cache depends on the third cache, that the first cache is to be refreshed.

10. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

obtaining a dependency relationship between a plurality of caches in a cascade cache;

determining, based on the dependency relationship, one or more cache priorities, wherein a particular cache that does not depend on any other cache has a higher priority than another cache that depends on a different cache;

determining, based on the cache priorities, a cache refreshing sequence associated with the plurality of caches in the cascade cache;

determining, based on the cache refreshing sequence, that a first cache of the plurality of caches is to be refreshed; and

responsive to determining that the first cache is to be refreshed, refreshing the first cache; and determining whether a second cache of the plurality of caches, the second cache following the first cache in the cache refreshing sequence, is to be refreshed after the first cache is refreshed.

11. The non-transitory, computer-readable medium of claim 10 , further comprising sequentially determining whether each cache in the cascade cache is to be refreshed.

12. The non-transitory, computer-readable medium of claim 10 , wherein the operations further comprise:

detecting whether a circular dependency conflict exists, wherein the dependency relationship is used to detect whether the second cache is dependent upon itself;

responsive to detecting that the circular dependency conflict exists, terminating cache refreshing; and

responsive to detecting that the circular dependency conflict does not exist, continuing refreshing the cascade cache in accordance with the dependency relationship.

13. The non-transitory, computer-readable medium of claim 10 , wherein determining the first cache is to be refreshed comprises:

determining the first cache is not externally triggered to be refreshed.

14. The non-transitory, computer-readable medium of claim 13 further comprising:

responsive to determining the first cache is not externally triggered to be refreshed, determining, based on a cache that the first cache depends on, whether the first cache is to be refreshed.

15. The non-transitory, computer-readable medium of claim 10 , wherein determining the first cache is to be refreshed comprises:

determining the first cache is externally triggered to be refreshed.

16. The non-transitory, computer-readable medium of claim 15 wherein determining the first cache is externally triggered to be refreshed comprises determining the first cache has a refreshing tag corresponding to an external trigger, and the operations further comprise:

responsive to determining the first cache has the refreshing tag corresponding to the external trigger, refreshing the first cache, and

canceling the refreshing tag after refreshing the first cache.

17. The non-transitory, computer-readable medium of claim 10 , wherein determining the first cache is to be refreshed comprises:

determining, based on a third cache that the first cache depends on, the first cache is to be refreshed.

18. The non-transitory, computer-readable medium of claim 17 , wherein determining, based on the third cache that the first cache depends on, the first cache is to be refreshed comprises:

determining that a refreshing time of the third cache is later than a refreshing time of the first cache;

determining, based on the dependency relationship, that the first cache depends on the third cache; and

determining, based on determining that the refreshing time of the third cache is later than the refreshing time of the first cache and, based on the dependency relationship, that the first cache depends on the third cache, that the first cache is to be refreshed.

19. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

obtaining a dependency relationship between a plurality of caches in a cascade cache;

determining, based on the dependency relationship, one or more cache priorities, wherein a particular cache that does not depend on any other cache has a higher priority than another cache that depends on a different cache;

determining, based on the cache priorities, a cache refreshing sequence associated with the plurality of caches in the cascade cache;

determining, based on the cache refreshing sequence, that a first cache of the plurality of caches is to be refreshed; and

responsive to determining that the first cache is to be refreshed, refreshing the first cache;

and determining whether a second cache of the plurality of caches, the second cache following the first cache in the cache refreshing sequence, is to be refreshed after the first cache is refreshed.

20. The computer-implemented system of claim 19 , further comprising sequentially determining whether each cache in the cascade cache is to be refreshed.

21. The computer-implemented system of claim 19 , wherein the operations further comprise:

detecting whether a circular dependency conflict exists, wherein the dependency relationship is used to detect whether the second cache is dependent upon itself;

responsive to detecting that the circular dependency conflict exists, terminating cache refreshing; and

responsive to detecting that the circular dependency conflict does not exist, continuing refreshing the cascade cache in accordance with the dependency relationship.

22. The computer-implemented system of claim 19 , wherein determining the first cache is to be refreshed comprises:

determining the first cache is not externally triggered to be refreshed.

23. The computer-implemented system of claim 22 further comprising:

responsive to determining the first cache is not externally triggered to be refreshed, determining, based on a cache that the first cache depends on, whether the first cache is to be refreshed.

24. The computer-implemented system of claim 19 , wherein determining the first cache is to be refreshed comprises:

determining the first cache is externally triggered to be refreshed.

25. The computer-implemented system of claim 24 wherein determining the first cache is externally triggered to be refreshed comprises determining the first cache has a refreshing tag corresponding to an external trigger, and the operations further comprise:

responsive to determining the first cache has the refreshing tag corresponding to the external trigger, refreshing the first cache, and

canceling the refreshing tag after refreshing the first cache.

26. The computer-implemented system of claim 19 , wherein determining the first cache is to be refreshed comprises:

determining, based on a third cache that the first cache depends on, the first cache is to be refreshed.

27. The computer-implemented system of claim 26 , wherein determining, based on the third cache that the first cache depends on, the first cache is to be refreshed comprises:

determining that a refreshing time of the third cache is later than a refreshing time of the first cache;

determining, based on the dependency relationship, that the first cache depends on the third cache; and

determining, based on determining that the refreshing time of the third cache is later than the refreshing time of the first cache and, based on the dependency relationship, that the first cache depends on the third cache, that the first cache is to be refreshed.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 30, 2020
From: ZHAO, YANGYANG
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052261/0951 →
Priority Claims (1)
CN 201910269207.1 · Apr 4, 2019 · national
Continuity (2)
Continuation PCTCN2020071159 · Jan 9, 2020
Related Publication 20200320011A1 · Oct 8, 2020