Beispiel #1
0
 public FileCachePayload(object payload)
 {
     Payload = payload;
     Policy  = new SerializableCacheItemPolicy()
     {
         AbsoluteExpiration = DateTime.Now.AddYears(10)
     };
 }
Beispiel #2
0
 public FileCachePayload(object payload, SerializableCacheItemPolicy policy)
 {
     Payload = payload;
     Policy  = policy;
 }