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:
parent
aa3b406750
commit
dd62783830
5 changed files with 261 additions and 2 deletions
|
|
@ -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)
|
||||
//{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue