You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Anmol Rattan <an...@gmail.com> on 2016/09/03 09:02:11 UTC

Expiration policy

Hi,

Wanted to understand difference between expiration policy and eviction.

1. Expiration is a time base policy which will remove entry from cache
older than configured time duration. And will it only remove from cache and
would not invoke purge of cachestore (which may delete from backing
database).

2. Eviction is about size and removes older entry on size threshold breach
(LrU is one of few policies).

Thanks.

Re: Expiration policy

Posted by Amir Akhmedov <am...@gmail.com>.
Hi Anmol,

You statements are correct.

On Sep 3, 2016 05:02, "Anmol Rattan" <an...@gmail.com> wrote:

> Hi,
>
> Wanted to understand difference between expiration policy and eviction.
>
> 1. Expiration is a time base policy which will remove entry from cache
> older than configured time duration. And will it only remove from cache and
> would not invoke purge of cachestore (which may delete from backing
> database).
>
> 2. Eviction is about size and removes older entry on size threshold breach
> (LrU is one of few policies).
>
> Thanks.
>