• CacheManager
  • Documentation
  • Api Docs
  • MichaCo.net
    Show / Hide Table of Contents

    Class ProtoBufSerializer

    Implements the ICacheSerializer contract using ProtoBuf.

    Inheritance
    Object
    CacheSerializer
    ProtoBufSerializer
    Inherited Members
    CacheSerializer.SerializeCacheItem<T>(CacheItem<T>)
    CacheSerializer.DeserializeCacheItem<T>(Byte[], Type)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace:CacheManager.Serialization.ProtoBuf
    Assembly:CacheManager.Serialization.ProtoBuf.dll
    Syntax
    public class ProtoBufSerializer : CacheSerializer, ICacheSerializer

    Methods

    | Improve this Doc View Source

    CreateNewItem<TCacheValue>(ICacheItemProperties, Object)

    Declaration
    protected override object CreateNewItem<TCacheValue>(ICacheItemProperties properties, object value)
    Parameters
    Type Name Description
    ICacheItemProperties properties
    Object value
    Returns
    Type Description
    Object
    Type Parameters
    Name Description
    TCacheValue
    Overrides
    CacheSerializer.CreateNewItem<TCacheValue>(ICacheItemProperties, Object)
    | Improve this Doc View Source

    Deserialize(Byte[], Type)

    Declaration
    public override object Deserialize(byte[] data, Type target)
    Parameters
    Type Name Description
    System.Byte[] data
    Type target
    Returns
    Type Description
    Object
    Overrides
    CacheSerializer.Deserialize(Byte[], Type)
    | Improve this Doc View Source

    GetOpenGeneric()

    Declaration
    protected override Type GetOpenGeneric()
    Returns
    Type Description
    Type
    Overrides
    CacheSerializer.GetOpenGeneric()
    | Improve this Doc View Source

    Serialize<T>(T)

    Declaration
    public override byte[] Serialize<T>(T value)
    Parameters
    Type Name Description
    T value
    Returns
    Type Description
    System.Byte[]
    Type Parameters
    Name Description
    T
    Overrides
    CacheManager.Core.Internal.CacheSerializer.Serialize<T>(T)
    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net