Home
last modified time | relevance | path

Searched refs:prefsCache_ (Results 1 - 2 of 2) sorted by relevance

/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_helper.cpp34 std::map<std::string, std::pair<std::shared_ptr<Preferences>, bool>> PreferencesHelper::prefsCache_; member in OHOS::NativePreferences::PreferencesHelper
147 auto it = prefsCache_.find(realPath); in GetPreferences()
148 if (it != prefsCache_.end()) { in GetPreferences()
155 prefsCache_.erase(it); in GetPreferences()
185 prefsCache_.insert({realPath, {pref, isEnhancePreferences}}); in GetPreferences()
200 std::map<std::string, std::pair<std::shared_ptr<Preferences>, bool>>::iterator it = prefsCache_.find(realPath); in DeletePreferences()
201 if (it != prefsCache_.end()) { in DeletePreferences()
213 prefsCache_.erase(it); in DeletePreferences()
252 std::map<std::string, std::pair<std::shared_ptr<Preferences>, bool>>::iterator it = prefsCache_.find(realPath); in RemovePreferencesFromCache()
253 if (it == prefsCache_ in RemovePreferencesFromCache()
[all...]
/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/
H A Dpreferences_helper.h73 static std::map<std::string, std::pair<std::shared_ptr<Preferences>, bool>> prefsCache_; member in OHOS::NativePreferences::PreferencesHelper

Completed in 2 milliseconds