Start-CacheCluster Stop-CacheCluster Restart-CacheCluster
Get-CacheHost Get-CacheConfig Set-CacheConfig Start-CacheHost Stop-CacheHost Get-CacheStatistics Get-Cache Get-CacheRegion
using System.Data.Caching;
private Cache GetCurrentCache() { Cache dCache; ServerEndPoint[] servers = new ServerEndPoint[1]; servers[0] = new ServerEndPoint("localhost", 22233, "DistributedCacheService"); bool routingClient = true; bool localCache = false; var factory = new CacheFactory(servers, routingClient, localCache); dCache = factory.GetCache("default"); return dCache; }
Cache dCache = GetCurrentCache(); String key = keyTextbox.Text; String val = valueTxtBox.Text; if (key == "" || val == "") return; dCache.Add(key, val); statusLabel.Text = String.Format("Successfully added key {0} to cache.", key);
Cache dCache = GetCurrentCache(); String key = keyTextbox.Text; if (key == "") return; String val = dCache.Get(key).ToString(); valueTxtBox.Text = val; statusLabel.Text = String.Format("Successfully did Get of key {0} from cache", key);
0javascript
收藏css
Ctrl+Enter 發佈html
發佈java
取消mysql