.crypto will cache for only 1 hour now, in order to get more accurate prices
This commit is contained in:
parent
dad87457bf
commit
85fcf0bc60
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user