add LocalCache and setting