Clear-SPDistributedCacheItem

분산 캐시 서버에서 캐시된 항목을 지웁니다.

Syntax

Clear-SPDistributedCacheItem
     [-ContainerType] <SPDistributedCacheContainerType>
     [-AssignmentCollection <SPAssignmentCollection>]
     [-Confirm]
     [-WhatIf]
     [<CommonParameters>]

Description

분산 캐시 서버에서 캐시된 항목을 지우려면 Clear-SPDistributedCacheItems cmdlet을 사용합니다.

SharePoint 제품용 Windows PowerShell에 대한 사용 권한 및 최신 정보는 SharePoint Server Cmdlets를 참조하세요.

예제

---------------예제---------------

Clear-SPDistributedCacheItem -ContainerType DistributedLogonTokenCache

이 예제에서는 분산 토큰 캐시에 대한 모든 캐시 항목을 제거합니다.

매개 변수

-AssignmentCollection

올바른 삭제를 위해 개체를 관리합니다. SPWeb 또는 SPSite와 같은 개체를 사용하는 경우 많은 양의 메모리를 사용할 수 있으며, Windows PowerShell 스크립트에서 이러한 개체를 사용하려면 올바른 메모리 관리가 필요합니다. SPAssignment 개체를 사용하면 개체를 하나의 변수에 지정하고 해당 개체가 필요한 시기가 지나면 개체를 삭제하여 메모리를 확보할 수 있습니다. SPWeb, SPSite 또는 SPSiteAdministration 개체를 사용하는 경우 지정 컬렉션 또는 Global 매개 변수가 사용되지 않으면 해당 개체가 자동으로 삭제됩니다.

Global 매개 변수가 사용되는 경우 모든 개체가 전역 저장소에 포함됩니다. 개체가 즉시 사용되지 않거나 Stop-SPAssignment 명령을 사용하여 삭제되지 않는 경우 메모리 부족 시나리오가 발생할 수 있습니다.

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

-Confirm

명령을 실행하기 전에 사용자에게 확인 메시지를 표시합니다. 자세한 내용을 확인하려면 다음 명령을 입력하세요. get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ContainerType

지울 컨테이너 유형을 지정합니다.

SharePoint Server 2013 및 SharePoint Server 2016의 유효한 값은 다음과 같습니다.

DistributedDefaultCache, DistributedAccessCache, DistributedActivityFeedCache, DistributedBouncerCache, DistributedLogonTokenCache, DistributedServerToAppServerAccessTokenCache, DistributedSearchCache, DistributedSecurityTrimmingCache, DistributedActivityFeedLMTCache, DistributedViewStateCache

SharePoint Server 2016에 대한 유효한 추가 값은 다음과 같습니다.

DistributedSharedWithUserCache, DistributedUnifiedGroupsCache, DistributedFileLockThrottlerCache, DistributedResourceTallyCache, DistributedHealthScoreCache, DistributedClientSideAppUpdateTimeCache

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

-WhatIf

명령을 실행하는 대신에 명령의 효과를 설명하는 메시지를 표시합니다. 자세한 내용을 확인하려면 다음 명령을 입력하세요. get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition