Skip to content

Commit

Permalink
Fixed a bug in common.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurrahim373 committed Jan 20, 2024
1 parent 557cb59 commit d0410d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/UTube.Common/Services/DistributedCacheService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public DistributedCacheService(IDistributedCache distributedCache)

public Task AddAsync<T>(string key, T value, CancellationToken cancellationToken = default)
{
return AddAsync(key, JsonConvert.SerializeObject(value), cancellationToken);
return AddAsync(key, JsonConvert.SerializeObject(value), null, cancellationToken);
}

public Task AddAsync<T>(string key, T value, TimeSpan? timeSpan, CancellationToken cancellationToken = default)
Expand Down
8 changes: 5 additions & 3 deletions common/UTube.Common/UTube.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>UTube.Common</Title>
<PackageDescription>This is a common package for the utube that contains various events, models, services and some extention methods</PackageDescription>
<Version>0.2.1</Version>
<PackageDescription>This is a common package for the utube that contains various events, models, services and some extention methods.</PackageDescription>
<Version>0.3.0</Version>
<VersionPrefix>0.2.1</VersionPrefix>
<VersionSuffix>pre</VersionSuffix>
<Copyright>MIT</Copyright>
<PackageProjectUrl>https://github.com/rahim373/utube</PackageProjectUrl>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/rahim373/utube</RepositoryUrl>
<Description>This is a common package for the utube that contains various events, models, services and some extention methods.</Description>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>Fixed a bug while setting string value into Radis.</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit d0410d0

Please sign in to comment.