mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update ImageFileCache.cs
This commit is contained in:
parent
595b106c6b
commit
63c088e220
|
|
@ -65,12 +65,12 @@ namespace MapControl.Caching
|
||||||
{
|
{
|
||||||
if (expiration.Value > DateTimeOffset.UtcNow)
|
if (expiration.Value > DateTimeOffset.UtcNow)
|
||||||
{
|
{
|
||||||
var cacheOptions = new DistributedCacheEntryOptions
|
var options = new DistributedCacheEntryOptions
|
||||||
{
|
{
|
||||||
AbsoluteExpiration = expiration
|
AbsoluteExpiration = expiration
|
||||||
};
|
};
|
||||||
|
|
||||||
memoryCache.Set(key, buffer, cacheOptions);
|
memoryCache.Set(key, buffer, options);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -109,12 +109,12 @@ namespace MapControl.Caching
|
||||||
{
|
{
|
||||||
if (expiration.Value > DateTimeOffset.UtcNow)
|
if (expiration.Value > DateTimeOffset.UtcNow)
|
||||||
{
|
{
|
||||||
var cacheOptions = new DistributedCacheEntryOptions
|
var options = new DistributedCacheEntryOptions
|
||||||
{
|
{
|
||||||
AbsoluteExpiration = expiration
|
AbsoluteExpiration = expiration
|
||||||
};
|
};
|
||||||
|
|
||||||
await memoryCache.SetAsync(key, buffer, cacheOptions, token).ConfigureAwait(false);
|
await memoryCache.SetAsync(key, buffer, options, token).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue