add event handler in simple_cache