This commit is contained in:
2021-12-22 22:43:38 +00:00
parent a89d64ccfb
commit 7fe8ba9a3d
2 changed files with 12 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ namespace AyaNova.Util
{
if (value == null) value = string.Empty;
_vizCache[$"{key}{id}"] = value;
System.Diagnostics.Debug.WriteLine($"ADD {key}{id} - {value}");
// System.Diagnostics.Debug.WriteLine($"ADD {key}{id} - {value}");
}
internal string Get(string key, long? id = 0)
{
@@ -28,11 +28,16 @@ namespace AyaNova.Util
}
else
{
System.Diagnostics.Debug.WriteLine($"vizGet cache miss {key}{id}");
//System.Diagnostics.Debug.WriteLine($"vizGet cache miss {key}{id}");
return null;
}
}
internal bool Has(string key, long? id = 0)
{
return _vizCache.ContainsKey($"{key}{id}");
}
internal bool GetAsBool(string key, long? id = 0)
{
var s = Get(key, id);