a java cache which will handle the expire event