1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-12-16 07:10:32 +00:00

Ajout du lexique FR/RO + modif akavache

This commit is contained in:
Yan Maniez 2018-04-27 18:52:26 +02:00
parent aa3b406750
commit dd62783830
5 changed files with 261 additions and 2 deletions

View file

@ -123,7 +123,6 @@ namespace AideDeJeu.ViewModels
{
//Items.Clear();
var item = await new Scrappers().GetSpell(Item.Id);
await Akavache.BlobCache.UserAccount.Flush();
Item = item;
//foreach (var item in items)
//{

View file

@ -80,7 +80,9 @@ namespace AideDeJeuLib.Spells
{
BlobCache.ApplicationName = "AkavacheExperiment";
//await BlobCache.UserAccount.InsertObject(id, newSpell);
return await BlobCache.UserAccount.GetOrFetchObject<Spell>(id, () => GetSpellFromSource(id));
var spell = await BlobCache.LocalMachine.GetOrFetchObject<Spell>(id, () => GetSpellFromSource(id));
await BlobCache.LocalMachine.Flush();
return spell;
}
public async Task<IEnumerable<string>> GetSpellIds(string classe, int niveauMin = 0, int niveauMax = 9)