Set-SPDistributedCacheClientSetting

Establece la configuración de la caché distribuida.

Syntax

Set-SPDistributedCacheClientSetting
   [-ContainerType] <SPDistributedCacheContainerType>
   [-DistributedCacheClientSettings] <SPDistributedCacheClientSettings>
   [-AssignmentCollection <SPAssignmentCollection>]
   [<CommonParameters>]

Description

Use el Set-SPDistributedCacheClientSettings cmdlet para establecer el servicio de caché distribuida en función del uso. El uso puede ser cualquier tipo de caché que especifique el parámetro ContainerType.

Para obtener permisos y la información más reciente acerca de Windows PowerShell para Productos de SharePoint, vea la documentación en línea en Cmdlets de SharePoint Server.

Ejemplos

--------------------EJEMPLO---------------------

$settings = Get-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache
$settings.MaxConnectionsToServer = 10
Set-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache -DistributedCacheClientSettings $settings

En este ejemplo se actualiza MaxConnectionsToServer a 10 para DistributedLogonTokenCache.

Parámetros

- AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ContainerType

Especifica el tipo de contenedor que se borrará.

A continuación se incluyen los valores válidos:

-DistributedDefaultCache

-DistributedAccessCache

-DistributedActivityFeedCache

-DistributedBouncerCache

-DistributedLogonTokenCache

-DistributedServerToAppServerAccessTokenCache

-DistributedSearchCache

-DistributedSecurityTrimmingCache

-DistributedActivityFeedLMTCache

-DistributedViewStateCache

Type:SPDistributedCacheContainerType
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DistributedCacheClientSettings

Actualiza la configuración de cliente de caché. Es recomendable usar la configuración predeterminada.

Type:SPDistributedCacheClientSettings
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition