private void OnItemRemove(string key, CacheEventArg args) { DataCacheOperationDescriptor descriptor; if (key.StartsWith($"{Constants.CREATE_REGION_KEY}")) { var region = key.Replace($"{Constants.CREATE_REGION_KEY}", ""); descriptor = new DataCacheOperationDescriptor(CacheId, region, "", DataCacheOperations.RemoveRegion, null); } else { var keyRegion = DataFormatter.SplitKeyAndRegion(key); var cacheItemVersion = args.Item.CacheItemVersion; var version = new DataCacheItemVersion(cacheItemVersion); descriptor = new DataCacheOperationDescriptor(CacheId, keyRegion[1], keyRegion[0], DataCacheOperations.RemoveItem, version); } BulkCallback(CacheId, new DataCacheOperationDescriptor[] { descriptor }, NotificationDescriptor); }