|
|
|
|
@ -10,7 +10,7 @@ namespace Volo.Abp.Caching
|
|
|
|
|
public class DistributedCache_ConfigureOptions_Test : AbpIntegratedTest<AbpCachingTestModule>
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
|
|
|
|
public void Configure_CacheOptions()
|
|
|
|
|
public void Configure_AbpCacheOptions()
|
|
|
|
|
{
|
|
|
|
|
var personCache = GetRequiredService<IDistributedCache<Sail.Testing.Caching.PersonCacheItem>>();
|
|
|
|
|
GetDefaultCachingOptions(personCache).SlidingExpiration.ShouldBeNull();
|
|
|
|
|
@ -18,7 +18,7 @@ namespace Volo.Abp.Caching
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task Default_CacheOptions_Should_Be_20_Mins()
|
|
|
|
|
public async Task Default_AbpCacheOptions_Should_Be_20_Mins()
|
|
|
|
|
{
|
|
|
|
|
var personCache = GetRequiredService<IDistributedCache<PersonCacheItem>>();
|
|
|
|
|
|
|
|
|
|
|