add the basic class to handle cached SharedPreferences