Tcl
Tcl
Example: Http.GetCacheRoot method
Demonstrates theGetCacheRoot method.
Chilkat Tcl Downloads
load ./chilkat.dll
set http [new_CkHttp]
# Establish 2 cache root directories.
CkHttp_AddCacheRoot $http "c:/example/httpCacheA/"
CkHttp_AddCacheRoot $http "c:/example/httpCacheB/"
puts "Number of cache roots: [CkHttp_get_NumCacheRoots $http]"
puts "1st cache root: [CkHttp_getCacheRoot $http 0]"
puts "2nd cache root: [CkHttp_getCacheRoot $http 1]"
# Output:
# Number of cache roots: 2
# 1st cache root: c:/example/httpCacheA/
# 2nd cache root: c:/example/httpCacheB/
delete_CkHttp $http