Exportar (0) Imprimir
Expandir todo
Expandir Minimizar

Enumeración DataCacheLocalCacheInvalidationPolicy

Especifica el modo en que se debe invalidar los objetos almacenados en caché localmente.

Espacio de nombres:  Microsoft.ApplicationServer.Caching
Ensamblado:  Microsoft.ApplicationServer.Caching.Core (en Microsoft.ApplicationServer.Caching.Core.dll)

public enum class DataCacheLocalCacheInvalidationPolicy

Nombre del miembroDescripción
NotificationBasedEspecifica que los objetos permanecerán en la memoria caché local hasta que se invaliden automáticamente mediante una notificación de caché. No se admite en Shared Caching de Windows Azure.
TimeoutBasedEspecifica que los objetos permanecerán en la memoria caché local hasta que su duración alcance el valor de localCacheTimeout especificado en el constructor DataCacheFactory

When using the TimeoutBased enumeration to specify local cache sync policy, once objects are downloaded to local cache, they will stay there until they reach the object timeout value specified in the DataCacheFactory constructor's localCacheTimeout parameter. When the objects reach the time-out value, they are invalidated so that each object can be refreshed from the cache cluster the next time that it is requested.

When using the NotificationBased enumeration, locally cached objects will be automatically invalidated by cache notifications. The object lifetime can only be as short as the notification polling interval specified by the DataCacheFactory constructor's pollInterval parameter.

NotaNota

Notifications are not supported in Shared Caching de Windows Azure. Shared Caching de Windows Azure must use TimeoutBased invalidation.

In order for your application to use notifications, you need to enable them on a named cache. In Microsoft AppFabric 1.1 para Caching de Windows Server, use the notificationsEnabled parameter with the New-Cache or Set-CacheConfig Windows PowerShell commands. In Caching de Windows Azure, enable notifications in the Caching configuration of the role that hosts the cache.

Adiciones de comunidad

AGREGAR
Mostrar:
© 2014 Microsoft