This topic has not yet been rated - Rate this topic

CloudQueueClient.ApproximateMessageCountCacheLength Property

Gets or sets the lifetime of the approximate message count cache.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
'Usage
Dim instance As CloudQueueClient
Dim value As TimeSpan

value = instance.ApproximateMessageCountCacheLength

instance.ApproximateMessageCountCacheLength = value
[ObsoleteAttribute("The approximate message count cache is obsolete. Use FetchAttributes to refresh the approximate message count as needed.")] 
public TimeSpan ApproximateMessageCountCacheLength { get; set; }
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public TimeSpan get_ApproximateMessageCountCacheLength ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_ApproximateMessageCountCacheLength (TimeSpan value)

CompilerGeneratedAttribute 
public function get ApproximateMessageCountCacheLength () : TimeSpan

CompilerGeneratedAttribute 
public function set ApproximateMessageCountCacheLength (value : TimeSpan)

Property Value

Type: System.TimeSpan

The lifetime of the approximate message count cache.

This value determines how often the cache for the queue's approximate message count is refreshed. By default the lifetime of the cache is TimeSpan.Zero, and the approximate message count value is updated from the service each time the RetrieveApproximateMessageCount method is called.

Setting this value to a non-zero TimeSpan can improve performance if you are checking the approximate message count value frequently.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ