ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
<!– Class –> This class controls how the map images are cached by the browser.
The ClientCache class controls whether the map images will be cached by the browser. Setting the <strong>CacheId</strong> will enable the browser to cache the map images.
The <strong>CacheId</strong> string will be appended to the URL of the image. The browser uses the URL as the key to retrieve a cached image. Thus, you can make the browser cache different images by setting the <strong>CacheId</strong> to different values. For example, you can set a different CacheId for requests with different parameters and the browser will cache the different images for those requests.
The <strong>Duration</strong> defines the length of time that the images will remain in the browser cache. After that time, the image will then be requested from the server.
*System.Object **ThinkGeo.MapSuite.MvcEdition.ClientCache
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Initializes a new instance of the ClientCache class. | ||
![]() | TimeSpan | Initializes a new instance of the ClientCache class with the specified expiration time. | |
![]() | TimeSpan, String | Initializes a new instance of the ClientCache class with the specified expiration time and cacheId string. |
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Object | ||
![]() | Object |
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|
Initializes a new instance of the ClientCache class.
Initializes a new instance of the ClientCache class.
Name | Type | Description |
---|
Initializes a new instance of the ClientCache class with the specified expiration time.
Initializes a new instance of the ClientCache class.
Name | Type | Description |
---|---|---|
duration | TimeSpan<!– System.TimeSpan –> | The amount of the time that the cached images are to remain in the browser cache. |
Initializes a new instance of the ClientCache class with the specified expiration time and cacheId string.
Initializes a new instance of the ClientCache class.
Name | Type | Description |
---|---|---|
duration | TimeSpan<!– System.TimeSpan –> | The amount of the time that the cached images are to remain in the browser cache. |
cacheId | String<!– System.String –> | A string that the browser uses to retrieve a cached image. |
Return Type | Description |
---|---|
Boolean<!– System.Boolean –> |
Name | Type | Description |
---|---|---|
obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
Load this object from a json string.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
jsonString | String<!– System.String –> | a json string |
<!– ThinkGeo.MapSuite.MvcEdition.ClientCache –> Go Back
Return Type | Description |
---|---|
Int32<!– System.Int32 –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Type<!– System.Type –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Returns a JSON string containing the CacheId that will be part of the request string.
Return Type | Description |
---|---|
String<!– System.String –> | A JSON string that contains the CacheId. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.MvcEdition.ClientCache –> Go Back
Return Type | Description |
---|---|
String<!– System.String –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Gets or sets a string that enables the browser to cache images, and which is also part of the key for the browser to distinguish between each cached image.
Setting the <strong>CacheId</strong> will enable the browser to cache the map images. The <strong>CacheId</strong> string will also be appended to the URL of the image. The browser uses the URL as the key to retrieve a cached image; thus, you can make the browser cache different images by setting the <strong>CacheId</strong> to different values. For example, you can set a different CacheId for requests with different parameters and the browser will cache the different images for those requests.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.ClientCache –> Go Back
Gets or sets the expiration time of the images in the browser cache.
The <strong>Duration</strong> indicates the length of time that images will remain in the browser cache before expiring. The default value is 7 day.
Return Type |
---|
TimeSpan<!– System.TimeSpan –> |
<!– ThinkGeo.MapSuite.MvcEdition.ClientCache –> Go Back