public void OnAfterGet(string key) { _logger.Log(LogLevel.Trace, string.Format("GreatEagle OnAfterGet {0}", key)); var data = new CacheEventMessage(key, _memberName, CacheEventType.Get); var message = Serialize(data); _messagePublisher.Publish(message.ToString()); }
public void OnAfterDelete(string key) { _logger.Log(LogLevel.Trace, string.Format("GreatEagle OnAfterDelete {0}", key)); _remoteCacheProvider.Delete(key, true); var data = new CacheEventMessage(key, _memberName, CacheEventType.Delete); var message = Serialize(data); _subscriptionManager.Publish(message.ToString()); }
private object Serialize(CacheEventMessage cacheEvent) { return(_serializer.Serialize(cacheEvent)); }