forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystem.Net.Cache.cs
More file actions
63 lines (61 loc) · 2.72 KB
/
Copy pathSystem.Net.Cache.cs
File metadata and controls
63 lines (61 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// ------------------------------------------------------------------------------
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.Net.Cache
{
public enum HttpCacheAgeControl
{
MaxAge = 2,
MaxAgeAndMaxStale = 6,
MaxAgeAndMinFresh = 3,
MaxStale = 4,
MinFresh = 1,
None = 0,
}
public enum HttpRequestCacheLevel
{
BypassCache = 1,
CacheIfAvailable = 3,
CacheOnly = 2,
CacheOrNextCacheOnly = 7,
Default = 0,
NoCacheNoStore = 6,
Refresh = 8,
Reload = 5,
Revalidate = 4,
}
public partial class HttpRequestCachePolicy : System.Net.Cache.RequestCachePolicy
{
public HttpRequestCachePolicy() { }
public HttpRequestCachePolicy(System.DateTime cacheSyncDate) { }
public HttpRequestCachePolicy(System.Net.Cache.HttpCacheAgeControl cacheAgeControl, System.TimeSpan ageOrFreshOrStale) { }
public HttpRequestCachePolicy(System.Net.Cache.HttpCacheAgeControl cacheAgeControl, System.TimeSpan maxAge, System.TimeSpan freshOrStale) { }
public HttpRequestCachePolicy(System.Net.Cache.HttpCacheAgeControl cacheAgeControl, System.TimeSpan maxAge, System.TimeSpan freshOrStale, System.DateTime cacheSyncDate) { }
public HttpRequestCachePolicy(System.Net.Cache.HttpRequestCacheLevel level) { }
public System.DateTime CacheSyncDate { get { return default(System.DateTime); } }
public new System.Net.Cache.HttpRequestCacheLevel Level { get { return default(System.Net.Cache.HttpRequestCacheLevel); } }
public System.TimeSpan MaxAge { get { return default(System.TimeSpan); } }
public System.TimeSpan MaxStale { get { return default(System.TimeSpan); } }
public System.TimeSpan MinFresh { get { return default(System.TimeSpan); } }
public override string ToString() { return default(string); }
}
public enum RequestCacheLevel
{
BypassCache = 1,
CacheIfAvailable = 3,
CacheOnly = 2,
Default = 0,
NoCacheNoStore = 6,
Reload = 5,
Revalidate = 4,
}
public partial class RequestCachePolicy
{
public RequestCachePolicy() { }
public RequestCachePolicy(System.Net.Cache.RequestCacheLevel level) { }
public System.Net.Cache.RequestCacheLevel Level { get { return default(System.Net.Cache.RequestCacheLevel); } }
public override string ToString() { return default(string); }
}
}