/// <summary> /// 캐시에 저장된 <see cref="MongoCacheEntry"/>에서 원본 값을 추출합니다. /// </summary> /// <param name="entry"></param> /// <returns></returns> private static object DeserializeValue(MongoCacheEntry entry) { entry.ShouldNotBeNull("entry"); byte[] value = entry.Value; if(value == null) return null; if(entry.IsCompressed) value = Compressor.Decompress(value); return Serializer.Deserialize(value); }