/// <summary> /// 注册订阅方法 /// </summary> public void RegisterSubscribe <T>(string key, Cache.DoSub dosub) { ISubscriber isub = connectionMultiplexer.GetSubscriber(); isub.Subscribe(key, (channel, message) => { var cacheObject = Recieve <T>((string)message); dosub(cacheObject); }); foreach (var mkey in subs.Keys) { if (mkey == key) { return; } } subs.Add(key, isub); }
public void RegisterSubscribe <T>(string key, Cache.DoSub dosub) { throw new NotImplementedException(); }
public void RegisterSubscribe <T>(string key, Cache.DoSub dosub) { return; }
public void Recieve <T>(string key, Cache.DoSub dosub) { throw new NotImplementedException(); }
public void Recieve <T>(string key, Cache.DoSub dosub) { return; }