New-R1Cache

SYNOPSIS

Creates a persistent cache of a naming context.

SYNTAX

New-R1Cache [-dn] <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Creates a persistent cache of the naming context node identified by its DN. The cache is created unconfigured: Set-R1CacheRefresh or Set-R1CacheRealTimeConnectorConfig sets how it is refreshed, and Initialize-R1Cache fills it.

EXAMPLES

Example 1

New-R1Cache -dn 'o=directory'
Set-R1CacheRefresh -dn 'o=directory' -refreshCronExpression '0 0/10 * * * ?'
Initialize-R1Cache -dn 'o=directory'

Caches o=directory, refreshes it every ten minutes, and fills it from a snapshot of the view.

PARAMETERS

-dn

The DN of the naming context node to cache.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Void

NOTES

Get-R1Cache

Set-R1CacheRefresh

Initialize-R1Cache

Set-R1CacheProperty