login about faq

Hi there,

is there a short documention or some examples for what the CkCache is for? On the first sight I can't realize the power of this class.

Best Regards Chris

asked Sep 12 '16 at 04:06

ChrisMerten's gravatar image


edited Sep 12 '16 at 04:06

A browser keeps a local cache of files, which have expiration, such that when a web page is fetched, all of the bits and pieces (JPG images, CSS style sheets, etc.) are not constantly re-fetched from the server. The local cache is checked and the data from the cache is used if not expired.

The Chilkat HTTP API does not use the Chilkat.Cache / CkCache object directly, but it uses the same underlying implementation. There are various Chilkat.Http properties, such as FetchFromCache, FreshnessAlgorithm, LMFactor, MinFreshPeriod, MaxFreshPeriod, NumCacheLevels, NumCacheRoots, etc., and there's an AddCacheRoot method for specifying directories where the cache(s) are to be located.

I suspect people don't use the caching capability of Chilkat.Http because they don't understand it's there. But it does exist and follows the HTTP protocol specifications for caching.

The purpose of the Chilkat.Cache object is to externalize the integrated HTTP caching functionality so that it can be used for any purpose, not just web pages or web content. Think of Chilkat.Cache as a file-based hash table, where the content can be anything, of any size, and if desired, content can be declared stale after some period of time such that an app would go and re-fetch the content from the primary source from time to time..


answered Sep 13 '16 at 11:26

chilkat's gravatar image

chilkat ♦♦

Thanks! Great function.


answered Sep 14 '16 at 03:01

ChrisMerten's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Sep 12 '16 at 04:06

Seen: 1,618 times

Last updated: Sep 14 '16 at 03:01

powered by OSQA