安装后,两种方式存储:XML,sqlserver
建立缓存集
New-CacheCluster -Provider System.Data.SqlClient -ConnectionString "Data Source=[ServerName];Initial Catalog=[DBName];Integrated Security=True" -Size Small
Register-CacheHost -Provider System.Data.SqlClient -ConnectionString "Data Source=[ServerName];Initial Catalog=[DBName];Integrated Security=True" -Account "NT Authority\Network Service" -CachePort 22233 -ClusterPort 22234 -ArbitrationPort 22235 -ReplicationPort 22236 -HostName [CacheHostName]
Add-CacheHost -Provider System.Data.SqlClient -ConnectionString "Data Source=[ServerName];Initial Catalog=[DBName];Integrated Security=True" -Account "NT Authority\Network Service"
Add-CacheAdmin -Provider System.Data.SqlClient -ConnectionString "Data Source=[ServerName];Initial Catalog=[DBName];Integrated Security=True"
添加防火墙in/out端口配置
Use-CacheCluster
Get-CacheHost
Start-CacheCluster
Start-CacheHost hostname:22233
Stop-CacheCluster
Stop-CacheHost hostname:22233
Get-CacheAllowedClientAccounts
Grant-CacheAllowedClientAccount NetworkService
Get-CacheStatistics default
Get-CacheConnectionString