TextCache
August 4, 2008
A TextCache is a text file which contains key-string pairs. The keys are strings which have the keyLeader character as its first character. The string associated with a key is separated from the key by the keySeparator character. The default value for keyLeader is an ampersand ‘@’ and the default for the keySeparator is the equals sign ‘=’. Everything following the keySeparator up to the next keyLeader or the end of the text file is the text string. An exception is that blank characters at the end of a string element are removed and any new line character in the text file is replaced by a blank. The key-string pairs are cached in memory after instantiation and the strings my be retrieved by using the respective keys.