.crypto will cache for only 1 hour now, in order to get more accurate prices

This commit is contained in:
Master Kwoth 2017-11-10 13:42:43 +01:00
parent dad87457bf
commit 85fcf0bc60

View File

@ -68,7 +68,7 @@ namespace NadekoBot.Modules.Searches.Services
data = await Http.GetStringAsync("https://api.coinmarketcap.com/v1/ticker/") data = await Http.GetStringAsync("https://api.coinmarketcap.com/v1/ticker/")
.ConfigureAwait(false); .ConfigureAwait(false);
await r.StringSetAsync("crypto_data", data, TimeSpan.FromHours(6)).ConfigureAwait(false); await r.StringSetAsync("crypto_data", data, TimeSpan.FromHours(1)).ConfigureAwait(false);
} }
} }
finally finally