LlmGetCacheTime Function  
 
INT WINAPI LlmGetCacheTime(
  HCLIENT hClient  
);

The LlmGetCacheTime function returns the current cache lifetime, in seconds, for the specified client session.

Parameters

hClient
A handle to the client session.

Return Value

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

Remarks

The LlmGetCacheTime function 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 LlmSetCacheTime function. 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

LlmGetIdleTime, LlmGetProviderInfo, LlmGetTimeout, LlmSetCacheTime