cacheText

File log.cacheText ( String name, String content, String encoding ) (professional and enterprise editions only)
File log.cacheText ( String name, String content ) (professional and enterprise editions only)

Description

Adds text to the cache. This will create a new text file in the cache and store the given content in it.

Parameters

  • name The name of the file in the cache, including any directory it should be placed in
  • content The content to place in the cache
  • encoding The encoding to use for the text, or null to use the default encoding for the session

Return Value

A File that represents the cached file.

Change Log

Version Description
5.5.29a Available in professional and enterprise editions.
5.5.43a Moved from session to log class.

Examples

Cache the extracted section for a DataRecord

 log.cacheText("Datarecord.html", dataRecord.get("DATARECORD"), "UTF-8");