This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user