add clear method to LocalCache