NSoft.NFramework.CacheRepositoryEx.SetAsync C# (CSharp) Method

SetAsync() public static method

비동기 방식으로 캐시에 정보를 저장합니다.
public static SetAsync ( this repository, string key, object value, System.TimeSpan validFor = default(TimeSpan) ) : System.Threading.Tasks.Task
repository this
key string
value object
validFor System.TimeSpan
return System.Threading.Tasks.Task
        public static Task SetAsync(this ICacheRepository repository, string key, object value, TimeSpan validFor = default(TimeSpan)) {
            key.ShouldNotBeWhiteSpace("key");
            return Task.Factory.StartNew(() => repository.Set(key, value, validFor));
        }