mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#21182 Fixing generation of CacheItemPolicy used in Put.
Work Item: 21182
This commit is contained in:

committed by
Zoltán Lehóczky

parent
5ff2ad509b
commit
8101542d9e
@@ -23,7 +23,7 @@ namespace Orchard.Caching.Services {
|
||||
}
|
||||
|
||||
public void Put<T>(string key, T value, TimeSpan validFor) {
|
||||
_cache.Set(key, value, GetCacheItemPolicy(new DateTimeOffset(_clock.UtcNow).ToOffset(validFor)));
|
||||
_cache.Set(key, value, GetCacheItemPolicy(new DateTimeOffset(_clock.UtcNow.Add(validFor))));
|
||||
}
|
||||
|
||||
public void Remove(string key) {
|
||||
|
Reference in New Issue
Block a user