CacheDictionary Method

UltimateSpell

Collapse imageExpand ImageCopy imageCopyHover image
Write dictionary into cache.

Namespace: Karamasoft.WebControls.UltimateSpell
Assembly: UltimateSpell (in UltimateSpell.dll) Version: 3.7.4186.26738

Syntax

C#
public void CacheDictionary(
	string dictionaryFile
)
Visual Basic
Public Sub CacheDictionary ( _
	dictionaryFile As String _
)
Visual C++
public:
void CacheDictionary(
	String^ dictionaryFile
)

Parameters

dictionaryFile
Type: System..::..String
Physical path to the dictionary file that will be used as the cache key.

Remarks

Even if there is no actual dictionary file that you build the dictionary from you still need to enter a unique value for this parameter in order to read/write the dictionary from/to cache.

If there is a dictionary file then this parameter will also be used for cache dependency so that every time this dictionary file is changed the dictionary will be deleted from the cache, and it will be rebuilt and recached again.

Note that caching works in web applications only. Therefore you can cache the dictionary in ASP.NET web and web service applications, but not in Windows forms applications.

See Also