Table of Contents

ThinkGeo.MapSuite.MvcEdition.ClientCache

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This class controls how the map images are cached by the browser.

Inheritance Hierarchy

Members Summary

Public Constructors

ClientCache()

Remarks
Parameters

ClientCache(TimeSpan)

Remarks
Parameters

ClientCache(TimeSpan,String)

Remarks
Parameters

Protected Constructors

Public Methods

ToJson()

Remarks
Return Value
Parameters

FromJson(String)

Remarks
Return Value
Parameters

ToString()

Remarks
Return Value
Parameters

Equals(Object)

Remarks
Return Value
Parameters

GetHashCode()

Remarks
Return Value
Parameters

GetType()

Remarks
Return Value
Parameters

Protected Methods

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

Public Properties

Duration

Gets or sets the expiration time of the images in the browser cache.

Remarks

The Duration indicates the length of time that images will remain in the browser cache before expiring. The default value is 7 day.

Return Value

CacheId

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.

Remarks

Setting the CacheId will enable the browser to cache the map images. The CacheId 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 CacheId 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 Value

Protected Properties

Public Events