This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Collections.Generic;
|
||||
@@ -17,8 +18,8 @@ namespace AyaNova.Biz
|
||||
try
|
||||
{
|
||||
if (!theCache.ContainsKey(1))
|
||||
theCache[id] = await GetTranslationSearchDataAsync(id);
|
||||
return theCache[id];
|
||||
theCache.Add(id, await GetTranslationSearchDataAsync(id));
|
||||
return theCache.First(z=>z.Key==id).Value;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user