CLlmClient::GetCacheTime Method  
 
INT GetCacheTime();

The GetCacheTime method returns the current cache lifetime, in seconds, for the specified client session.

Parameters

None.

Return Value

If the method succeeds, the return value is the current cache time in seconds. If the method fails, the return value is LLM_ERROR. To get extended error information, call GetLastError.

Remarks

The GetCacheTime method retrieves the amount of time, in seconds, that provider and model information is cached by the client session. Caching this information reduces the number of requests made to the provider and can improve performance when repeatedly querying for models or provider metadata.

By default, the cache lifetime for a client session is one hour (3600 seconds). The cache time can be adjusted using the SetCacheTime method. Shorter cache times will refresh provider and model information more frequently, while longer cache times can reduce network activity.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csllmv12.lib

See Also