Patent ID: 8443149

Claim:
A method comprising: evicting a plurality of keys from a first cache at a primary server, wherein the evicting further comprises evicting a first key of the plurality of keys from the first cache because the first key satisfied a first evict policy during a first time range and evicting a second key of the plurality of keys from the first cache because the second key satisfied the first evict policy during a second time range, wherein the second key did not satisfy the first evict policy during the first time range; adding the plurality of keys to a batch file; if the batch file is full, sending the batch file to a replica server, wherein the batch file requests the replica server to evict the plurality of keys from a second cache at the replica server, wherein the plurality of keys are a subset of a database that is stored at the primary server, wherein the database is not stored at the replica server; allocating additional memory to the batch file if a percentage of the first cache that is available is less than a threshold amount; and if the batch file is not full, refraining from sending the batch file to the replica server.