You are here: C++ Support Classes > dtSearch Namespace > Classes > dtsIndexCacheOptions Structure > dtsIndexCacheOptions::autoCloseTime Data Member
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsIndexCacheOptions::autoCloseTime Data Member

Number of seconds before an unused index can be closed automatically.

Syntax
C++
int autoCloseTime;

Use autoCloseTime to have the cache automatically shrink when idle. On each access to the cache, the last-used time for each index is compared to autoCloseTime and, if the index has not been used for a sufficient period of time, the index is closed and removed from the cache. 

The cache does not have its own thread to implement autoCloseTime, so it only checks autoCloseTime when the cache is accessed for any reason, including a call to dtsIndexCache.GetStatus().

Copyright (c) 1995-2021 dtSearch Corp. All rights reserved.