How the difference between Observer and Sweeper?

I'm think to use any to work with cache. How I should to use.

Sorry my English, I'm going to write again my question:

I'm thinking in using some of them to work with cache. Which should I
use?