Patent ID: 8607001

Claim:
A method for selecting cache replacement policies, comprising: obtaining statistical data of multiple cache replacement policies that are running simultaneously; wherein among the multiple cache replacement policies only one active cache replacement policy decides whether to delete or reserve cache data; and switching, according to an event of policy decision for cache replacement policies and the statistical data, from the active cache replacement policy to a cache replacement policy that complies with a policy decision requirement; wherein the step of switching from the active cache replacement policy to the cache replacement policy that complies with the policy decision requirement comprises: setting a flag of the cache replacement policy that complies with the policy decision requirement to active and setting a flag of the original active cache replacement policy to standby, wherein the “active” flag indicates that the cache replacement policy whose flag is set as active is an active cache replacement policy and the “standby” flag indicates that the cache replacement policy whose flag is set as standby is a standby cache replacement policy.