Method, System and Server of Removing a Distributed Caching Object
First Claim
1. A method of removing a distributed cache object, comprising:
- receiving a removal request, the removal request including an identifier of an object;
applying Hashing to the identifier of the object to obtain a Hash result value of the identifier;
locating a corresponding cache server based on the Hash result value and rendering the corresponding cache server to be a present cache server;
determining whether the present cache server is in an active status and has an active period greater than an expiration period associated with the object; and
in response to determining that the present cache server is in an active status and has an active period greater than the expiration period associated with the object, removing the object from the present cache server.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure discloses a method, a system and a server of removing a distributed caching object. In one embodiment, the method receives a removal request, where the removal request includes an identifier of an object. The method may further apply consistent Hashing to the identifier of the object to obtain a Hash result value of the identifier, locates a corresponding cache server based on the Hash result value and renders the corresponding cache server to be a present cache server. In some embodiments, the method determines whether the present cache server is in an active status and has an active period greater than an expiration period associated with the object. Additionally, in response to determining that the present cache server is in an active status and has an active period greater than the expiration period associated with the object, the method removes the object from the present cache server. By comparing an active period of a located cache server with an expiration period associated with an object, the exemplary embodiments precisely locate a cache server that includes the object to be removed and perform a removal operation, thus saving the other cache servers from wasting resources to perform removal operations and hence improving the overall performance of the distributed cache system.
121 Citations
20 Claims
-
1. A method of removing a distributed cache object, comprising:
-
receiving a removal request, the removal request including an identifier of an object; applying Hashing to the identifier of the object to obtain a Hash result value of the identifier; locating a corresponding cache server based on the Hash result value and rendering the corresponding cache server to be a present cache server; determining whether the present cache server is in an active status and has an active period greater than an expiration period associated with the object; and in response to determining that the present cache server is in an active status and has an active period greater than the expiration period associated with the object, removing the object from the present cache server. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system of removing a distributed caching object, comprising a removal server and multiple cache servers, wherein:
-
the cache servers are configured to cache objects that are accessed by users; and the removal server is configured to; receive a removal request, the removal request including an identifier of an object, apply consistent Hashing to the identifier of the object to obtain a Hash result value of the identifier, locate a corresponding cache server based on the Hash result value and render the corresponding cache server to be a present cache server, determine whether the present cache server is in an active status and has an active period greater than an expiration period associated with the object, and in response to determining that the present cache server is in an active status and has an active period greater than the expiration period associated with the object, remove the object from the present cache server. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A removal server, comprising:
-
a receiving unit configured to receive a removal request, where the removal request includes an identifier of an object; a computation unit configured to apply consistent Hashing to the identifier of the object to obtain a Hash result value of the identifier; a locating unit configured to locate a corresponding cache server based on the Hash result value and render the corresponding cache server to be a present cache server; a determination unit configured to determine whether the present cache server is in an active status and has an active period greater than an expiration period associated with the object; and a removal unit configured to remove the object from the present cache server in response to determining that the present cache server is in an active status and has an active period greater than the expiration period associated with the object. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification