====== ThinkGeo.MapSuite.SilverlightEdition.ServerCache ====== {{section>upgrade_map_suite_to_10.0}} This class controls the cachablity of the map control at the server side. === Remarks === The <strong>ServerCache</strong> object contains information for caching map images at the server side. When you set the <strong>CacheDirectory</strong>, the server cache is automatically turned on. A map image only needs to be generated once and then saved to the folder specified by the <strong>CacheDirectory</strong>. Later, when the map image is revisited, it is retrieved from the cache folder. Using the server cache will greatly increase the responsiveness of the map, but it is only suitable for a static map.The <strong>ServerCache</strong> object contains information for caching map images at the server side. When you set the <strong>CacheDirectory</strong>, the server cache is automatically turned on. A map image only needs to be generated once and then saved to the folder specified by the <strong>CacheDirectory</strong>. Later, when the map image is revisited, it is retrieved from the cache folder. Using the server cache will greatly increase the responsiveness of the map, but it is only suitable for a static map. ===== Inheritance Hierarchy ===== *System.Object **[[ThinkGeo.MapSuite.SilverlightEdition.ServerCache]] ===== Members Summary ===== ==== Public Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#ServerCache()|ServerCache]] | | | Initializes a new instance of the ServerCache class. | | {{wiki:PublicMethod.gif|Public Method}}[[#ServerCache(String)|ServerCache]] | String | | Initializes a new instance of the ServerCache class with the specified cache directory. | ==== Protected Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ ==== Public Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#ToString()|ToString]] | | Object | | ==== Protected Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:ProtectedMethod.gif|Protected Method}}[[#Finalize()|Finalize]] | | Object | | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | ==== Public Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ | {{wiki:PublicProperty.gif|Public Property}}[[#CacheDirectory|CacheDirectory]] | String | | Gets or sets a string that represents the directory of the cache folder. | | {{wiki:PublicProperty.gif|Public Property}}[[#CacheId|CacheId]] | String | | Gets or sets a string which is used to retrieve the cached images. | ==== Protected Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ ==== Public Events ==== ^ Name ^ Event Arguments ^ DeclaringType ^ Summary ^ ===== Public Constructors ===== ==== ServerCache() ==== Initializes a new instance of the ServerCache class. === Overloads === Initializes a new instance of the ServerCache class. === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#ServerCache.28.29 === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Constructors|Go Back]] ==== ServerCache(String) ==== Initializes a new instance of the ServerCache class with the specified cache directory. === Overloads === Initializes a new instance of the ServerCache class. === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#ServerCache.28String.29 === Parameters === ^ Name ^ Type ^ Description ^ | cacheDirectory | String | The directory string that indicates where the cache images are saved to. | [[#Public Constructors|Go Back]] ===== Protected Constructors ===== ===== Public Methods ===== ==== Equals(Object) ==== === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#Equals.28Object.29 === Return Value === ^ Return Type ^ Description ^ | Boolean | | === Parameters === ^ Name ^ Type ^ Description ^ | obj | Object | | [[#Public Methods|Go Back]] ==== GetHashCode() ==== === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#GetHashCode.28.29 === Return Value === ^ Return Type ^ Description ^ | Int32 | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== GetType() ==== === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#GetType.28.29 === Return Value === ^ Return Type ^ Description ^ | Type | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== ToString() ==== === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#ToString.28.29 === Return Value === ^ Return Type ^ Description ^ | String | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ===== Protected Methods ===== ==== Finalize() ==== === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#Finalize.28.29 === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ==== MemberwiseClone() ==== === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#MemberwiseClone.28.29 === Return Value === ^ Return Type ^ Description ^ | Object | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ===== Public Properties ===== ==== CacheDirectory ==== Gets or sets a string that represents the directory of the cache folder. === Remarks === For the most updated Info for this topic, please check it here:http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.SilverlightEdition.ServerCache#CacheDirectory === Return Value === ^ Return Type ^ | String | [[#Public Properties|Go Back]] ==== CacheId ==== Gets or sets a string which is used to retrieve the cached images. === Remarks === The <strong>CacheId</strong> is actually the name of a sub-folder of the cache folder to which images with the same CacheId are saved. When you set the same CacheId in different pages, the map images of these pages will be saved and retrieved from the same folder. Thus you can share cache images between pages.The <strong>CacheId</strong> is actually the name of a sub-folder of the cache folder to which images with the same CacheId are saved. When you set the same CacheId in different pages, the map images of these pages will be saved and retrieved from the same folder. Thus you can share cache images between pages. === Return Value === ^ Return Type ^ | String | [[#Public Properties|Go Back]] ===== Protected Properties ===== ===== Public Events ===== __NOTOC__ [[Category:SilverlightMapConnector]] [[Category:ThinkGeo.MapSuite.SilverlightEdition]] [[Category:UpdateDocumentation]]