public static bool GetBoolItem(string itemName, bool defaultState) { if ((UseCache == false) || (cachedItems.ContainsKey(itemName) == false)) { cachedItems[itemName] = StorageMechanism.GetBoolItem(itemName, defaultState); } return(( bool )cachedItems[itemName]); }
public static int GetIntItem(string itemName, int defaultState) { if ((UseCache == false) || (cachedItems.ContainsKey(itemName) == false)) { cachedItems[itemName] = StorageMechanism.GetIntItem(itemName, defaultState); } return(( int )cachedItems[itemName]); }
public void DeleteItem(string itemName) { cachedItems.Remove(itemName); StorageMechanism.DeleteItem(itemName); }
public static void SetIntItem(string itemName, int state) { cachedItems[itemName] = state; StorageMechanism.SetIntItem(itemName, state); }
public static void SetBoolItem(string itemName, bool state) { cachedItems[itemName] = state; StorageMechanism.SetBoolItem(itemName, state); }