Beispiel #1
0
 /// <summary>
 /// Used to get a pageCacheIndex from cache
 /// </summary>
 /// <param name="requestURL"></param>
 /// <param name="collectionIdentifier"></param>
 /// <returns></returns>
 public static async Task <PageCacheIndex> retrieve(string requestURL, IonConfig config)
 {
     return(await CacheIndexStore.retrieve <PageCacheIndex>(requestURL, config).ConfigureAwait(false));
 }
 /// <summary>
 /// Retrieves a FileCacheIndex from cache
 /// </summary>
 /// <param name="requestURL"></param>
 /// <param name="collectionIdentifier"></param>
 /// <returns>FileCacheIndex object or null, if the index isn't found</returns>
 public static async Task <FileCacheIndex> retrieveAsync(string requestUrl, IonConfig config)
 {
     return(await CacheIndexStore.retrieve <FileCacheIndex>(requestUrl, config).ConfigureAwait(false));
 }
Beispiel #3
0
        /// <summary>
        /// Retrieves a collection cache index either from memory or file cache
        /// </summary>
        /// <param name="config"></param>
        /// <returns>Cache index or null, if no cache index was found</returns>
        public static async Task <CollectionCacheIndex> retrieve(IonConfig config)
        {
            String requestUrl = PagesURLs.getCollectionURL(config);

            return(await CacheIndexStore.retrieve <CollectionCacheIndex>(requestUrl, config).ConfigureAwait(false));
        }