|
Pavalisoft.Caching
1.2.1
A single unified Caching Api for both MemoryCache and DistributedCache implementations including CacheManager
|
Represents interface for Cache Item Serializer More...
Public Member Functions | |
| byte [] | Serialize< T > (T item) |
| Serializes the specified Cached Object. More... | |
| Task< byte[]> | SerializeAsync< T > (T item) |
| Serializes the specified Cached Object asynchronous. More... | |
| T | Deserialize< T > (byte[] bytes) |
| Deserializes the specified bytes to T . More... | |
| Task< T > | DeserializeAsync< T > (byte[] bytes) |
| Deserializes the specified bytes to T asynchronously. More... | |
Represents interface for Cache Item Serializer
| T Pavalisoft.Caching.Interfaces.ISerializer.Deserialize< T > | ( | byte [] | bytes | ) |
Deserializes the specified bytes to T .
| T | Cached Object Type |
| bytes | The serialized object. |
Implemented in Pavalisoft.Caching.Serializers.JsonSerializer, and Pavalisoft.Caching.Serializers.BinaryFormatterSerializer.
| Task<T> Pavalisoft.Caching.Interfaces.ISerializer.DeserializeAsync< T > | ( | byte [] | bytes | ) |
Deserializes the specified bytes to T asynchronously.
| T | Cached Object Type |
| bytes | The serialized object. |
Implemented in Pavalisoft.Caching.Serializers.JsonSerializer, and Pavalisoft.Caching.Serializers.BinaryFormatterSerializer.
| byte [] Pavalisoft.Caching.Interfaces.ISerializer.Serialize< T > | ( | T | item | ) |
Serializes the specified Cached Object.
| T | Cached Object Type |
| item | Cached Object |
Implemented in Pavalisoft.Caching.Serializers.BinaryFormatterSerializer, and Pavalisoft.Caching.Serializers.JsonSerializer.
| Task<byte[]> Pavalisoft.Caching.Interfaces.ISerializer.SerializeAsync< T > | ( | T | item | ) |
Serializes the specified Cached Object asynchronous.
| T | Cached Object Type |
| item | Cached Object |
Implemented in Pavalisoft.Caching.Serializers.BinaryFormatterSerializer, and Pavalisoft.Caching.Serializers.JsonSerializer.