Lasso Soft Inc. > Home

[Cache_Exists]

[Cache_Exists] checks whether a given cache contains current content. This tag accepts the same parameters as the opening [Cache] tag. It returns true if the [Cache] ... [/Cache] container would return cached content or false otherwise.

Requires a -Name parameter which specifies the name of the cache. An optional -Session parameter specifies the session that contains the cache, if applicable.

  • Syntax
  • Parameters
[Cache_Exists: -Name='MyCache']
Required Parameters
-Name The name of the cache to be checked.
Optional Parameters
-Expires The expiration (in seconds) to be checked. If the cached content was created within this many minutes then the tag will return true.
-UseGlobal If a -Session is specified then -UseGlobal can be specified so that both the session and the global cache storage are checked.
-Session Specifies the name of the session that stores the cache.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag. This tag is documented on page 501.

Tag Link [Cache_Exists] Category Utility
Type Substitution Data Source Any
Support Preferred Version 8.1
Output Type None Security Tag
Implementation LDML Sets Lasso 8.5, Lasso 8.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft