Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,4 @@ FakesAssemblies/
_Pvt_Extensions
/src/Newtonsoft.Json.dll
/.sonarqube
*.orig
1 change: 1 addition & 0 deletions CachingFramework.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<Folder Name="/Solution Items/">
<File Path="COLLECTIONS.md" />
<File Path="Directory.Build.props" />
<File Path="Directory.Packages.props" />
<File Path="docker/docker-compose.yml" />
<File Path="README.md" />
</Folder>
Expand Down
25 changes: 25 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<NoWarn>$(NoWarn);NU1507</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
<PackageVersion Include="MemoryPack" Version="1.21.4" />
<PackageVersion Include="MessagePack" Version="3.1.4" />
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="9.0.10" />
<PackageVersion Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.10" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageVersion Include="Moq" Version="4.20.72" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.4" />
<PackageVersion Include="Nito.AsyncEx.Context" Version="5.1.2" />
<PackageVersion Include="NUnit" Version="4.4.0" />
<PackageVersion Include="NUnit.Analyzers" Version="4.11.2" />
<PackageVersion Include="NUnit3TestAdapter" Version="5.2.0" />
<PackageVersion Include="StackExchange.Redis" Version="2.9.32" />
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.2" />
<PackageVersion Include="System.Text.Json" Version="9.0.10" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>
<PropertyGroup>
<Description>
MemoryPack serializer for CachingFramework.Redis, a distributed caching based on StackExchange.Redis and Redis. Includes support for all redis data types, tagging mechanism, cache invalidation, PubSub, GeoSpatial indexes, HyperLogLog and is cluster-compatible.
This uses MemoryPack for C#. You can read more about serialization using MemoryPack in https://github.com/Cysharp/MemoryPack
</Description>
<Copyright>Copyright 2025</Copyright>
<AssemblyTitle>CachingFramework.Redis.MemoryPack</AssemblyTitle>
<Authors>ospanova65;Federico Colombo</Authors>
<TargetFrameworks>netstandard2.1;net6.0;net8.0;net9.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>CachingFramework.Redis.MemoryPack</AssemblyName>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<AssemblyOriginatorKeyFile>../CachingFramework.Redis.snk</AssemblyOriginatorKeyFile>
<PackageId>CachingFramework.Redis.MemoryPack</PackageId>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>Async;Redis;Cache;Tagging;StackExchange.Redis;MemoryPack</PackageTags>
<PackageProjectUrl>https://github.com/thepirat000/CachingFramework.Redis</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>Copyright 2025</Copyright>
<AssemblyTitle>CachingFramework.Redis.MemoryPack</AssemblyTitle>
<Authors>ospanova65;Federico Colombo</Authors>
<TargetFrameworks>netstandard2.1;net6.0;net8.0;net9.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>CachingFramework.Redis.MemoryPack</AssemblyName>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<AssemblyOriginatorKeyFile>../CachingFramework.Redis.snk</AssemblyOriginatorKeyFile>
<PackageId>CachingFramework.Redis.MemoryPack</PackageId>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>Async;Redis;Cache;Tagging;StackExchange.Redis;MemoryPack</PackageTags>
<PackageProjectUrl>https://github.com/thepirat000/CachingFramework.Redis</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes></PackageReleaseNotes>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/thepirat000/CachingFramework.Redis</RepositoryUrl>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<NoWarn>1701;1702;1573;1591</NoWarn>
</PropertyGroup>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/thepirat000/CachingFramework.Redis</RepositoryUrl>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<NoWarn>1701;1702;1573;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MemoryPack" Version="1.21.4" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="LICENSE" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MemoryPack" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="LICENSE" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CachingFramework.Redis\CachingFramework.Redis.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CachingFramework.Redis\CachingFramework.Redis.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
</Project>
8 changes: 4 additions & 4 deletions src/CachingFramework.Redis.MemoryPack/MemoryPackSerializer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MemoryPack;
using MemoryPack;

using StackExchange.Redis;

Expand All @@ -7,7 +7,7 @@
namespace CachingFramework.Redis.MemoryPack
{
/// <summary>
/// Class MsgPackSerializer.
/// Class MemoryPackSerializer.
/// </summary>
public class MemoryPackSerializer : Contracts.SerializerBase
{
Expand All @@ -32,7 +32,7 @@ public override RedisValue Serialize<T>(T value)
{
return RedisValue.Null;
}

return global::MemoryPack.MemoryPackSerializer.Serialize(value);
}

Expand All @@ -48,7 +48,7 @@ public override T Deserialize<T>(RedisValue value)
{
return default;
}

var rom = (ReadOnlyMemory<byte>)value;

return global::MemoryPack.MemoryPackSerializer.Deserialize<T>(rom.Span, _options);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>
<PropertyGroup>
<Description>
MessagePack serializer for CachingFramework.Redis, a distributed caching based on StackExchange.Redis and Redis. Includes support for all redis data types, tagging mechanism, cache invalidation, PubSub, GeoSpatial indexes, HyperLogLog and is cluster-compatible.
This uses MessagePack for C# which requires annotations on the objects you want to save in Redis. You can read more about serialization using MessagePack in https://github.com/neuecc/MessagePack-CSharp#readme
</Description>
<Copyright>Copyright 2016-2022</Copyright>
<AssemblyTitle>CachingFramework.Redis.MsgPack</AssemblyTitle>
<Authors>Federico Colombo</Authors>
<TargetFrameworks>netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>CachingFramework.Redis.MsgPack</AssemblyName>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<AssemblyOriginatorKeyFile>../CachingFramework.Redis.snk</AssemblyOriginatorKeyFile>
<PackageId>CachingFramework.Redis.MsgPack</PackageId>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>Async;Redis;Cache;Tagging;StackExchange.Redis;MsgPack;MessagePack</PackageTags>
<PackageProjectUrl>https://github.com/thepirat000/CachingFramework.Redis</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes>Removes the old MsgPack.Cli package and instead uses the newer MessagePack for C# package.</PackageReleaseNotes>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/thepirat000/CachingFramework.Redis</RepositoryUrl>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<NoWarn>1701;1702;1573;1591</NoWarn>
</PropertyGroup>
<Copyright>Copyright 2016-2025</Copyright>
<AssemblyTitle>CachingFramework.Redis.MsgPack</AssemblyTitle>
<Authors>Federico Colombo</Authors>
<TargetFrameworks>netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>CachingFramework.Redis.MsgPack</AssemblyName>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<AssemblyOriginatorKeyFile>../CachingFramework.Redis.snk</AssemblyOriginatorKeyFile>
<PackageId>CachingFramework.Redis.MsgPack</PackageId>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>Async;Redis;Cache;Tagging;StackExchange.Redis;MsgPack;MessagePack</PackageTags>
<PackageProjectUrl>https://github.com/thepirat000/CachingFramework.Redis</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes>Removes the old MsgPack.Cli package and instead uses the newer MessagePack for C# package.</PackageReleaseNotes>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/thepirat000/CachingFramework.Redis</RepositoryUrl>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<NoWarn>1701;1702;1573;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MessagePack" Version="3.1.4" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="LICENSE" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MessagePack" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="LICENSE" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CachingFramework.Redis\CachingFramework.Redis.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CachingFramework.Redis\CachingFramework.Redis.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>Newtonsoft Json serializer for CachingFramework.Redis, a distributed caching based on StackExchange.Redis and Redis. Includes support for all redis data types, tagging mechanism, cache invalidation, PubSub, GeoSpatial indexes, HyperLogLog and is cluster-compatible.</Description>
<Copyright>Copyright 2016</Copyright>
<AssemblyTitle>CachingFramework.Redis.NewtonsoftJson</AssemblyTitle>
<Authors>Federico Colombo</Authors>
<TargetFrameworks>net462;netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>CachingFramework.Redis.NewtonsoftJson</AssemblyName>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<AssemblyOriginatorKeyFile>../CachingFramework.Redis.snk</AssemblyOriginatorKeyFile>
<PackageId>CachingFramework.Redis.NewtonsoftJson</PackageId>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>Async;Redis;Cache;Tagging;StackExchange.Redis;NewtonsoftJson;MessagePack</PackageTags>
<PackageProjectUrl>https://github.com/thepirat000/CachingFramework.Redis</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/thepirat000/CachingFramework.Redis</RepositoryUrl>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<NoWarn>1701;1702;1573;1591</NoWarn>
</PropertyGroup>
<PropertyGroup>
<Description>Newtonsoft Json serializer for CachingFramework.Redis, a distributed caching based on StackExchange.Redis and Redis. Includes support for all redis data types, tagging mechanism, cache invalidation, PubSub, GeoSpatial indexes, HyperLogLog and is cluster-compatible.</Description>
<Copyright>Copyright 2016</Copyright>
<AssemblyTitle>CachingFramework.Redis.NewtonsoftJson</AssemblyTitle>
<Authors>Federico Colombo</Authors>
<TargetFrameworks>net462;netstandard2.0;net6.0;net8.0;net9.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>CachingFramework.Redis.NewtonsoftJson</AssemblyName>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<AssemblyOriginatorKeyFile>../CachingFramework.Redis.snk</AssemblyOriginatorKeyFile>
<PackageId>CachingFramework.Redis.NewtonsoftJson</PackageId>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>Async;Redis;Cache;Tagging;StackExchange.Redis;NewtonsoftJson;MessagePack</PackageTags>
<PackageProjectUrl>https://github.com/thepirat000/CachingFramework.Redis</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/thepirat000/CachingFramework.Redis</RepositoryUrl>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<NoWarn>1701;1702;1573;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\CachingFramework.Redis\CachingFramework.Redis.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CachingFramework.Redis\CachingFramework.Redis.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="LICENSE" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="LICENSE" />
</ItemGroup>

<ItemGroup>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
</Project>
Loading
Loading