Exemple #1
0
 public void CacheTest()
 {
     // startgist:9711e4670aaa97c975c8:prismic-cache.cs
     // TODO
     var cache = LambdaCache.For(
         (key, value, ttl) => {
         return(null);
     },
         key => {
         return(null);
     }
         );
     // This Api will use the custom cache object
     var api = prismic.Api.Get("https://lesbonneschoses.cdn.prismic.io/api", cache);
     // endgist
 }
Exemple #2
0
 public static Expression <Func <T, object> > Property <T>(string property)
 {
     return(LambdaCache <T> .GetOrAdd(property, () => PropertyUsingLinq <T>(property)));
 }