Skip to content

Commit 0751ed3

Browse files
authored
Merge pull request #3 from PandaTechAM/development
Assembly name fix in rate limit
2 parents cea496b + fa5fddf commit 0751ed3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/DistributedCache/DistributedCache.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<PackageReadmeFile>Readme.md</PackageReadmeFile>
99
<Authors>Pandatech</Authors>
1010
<Copyright>MIT</Copyright>
11-
<Version>1.2.0</Version>
11+
<Version>1.2.1</Version>
1212
<PackageId>Pandatech.DistributedCache</PackageId>
1313
<Title>Pandatech Distributed Cache</Title>
1414
<PackageTags>Pandatech, library, redis, distributed locks, cache</PackageTags>
1515
<Description>Pandatech.DistributedCache is a comprehensive caching library designed for .NET applications, leveraging the power of Redis. It provides easy-to-use and highly configurable caching mechanisms, including support for tagged cache entries, customizable expiration policies, and robust health check services. The library also features built-in distributed lock mechanisms to ensure data consistency and prevent cache stampedes. This ensures high performance, scalability, and reliability, making it an ideal choice for enterprise-level distributed caching needs.</Description>
1616
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-distributed-cache</RepositoryUrl>
17-
<PackageReleaseNotes>Rate limiting feature implementation redesigned for handling locks and using module prefix</PackageReleaseNotes>
17+
<PackageReleaseNotes>Assembly name fix in rate limit</PackageReleaseNotes>
1818
</PropertyGroup>
1919

2020
<ItemGroup>

src/DistributedCache/Services/Implementations/RedisRateLimitService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public class RedisRateLimitService(
1717
private readonly IRedisDatabase _redisDatabase = redisClient.GetDefaultDatabase();
1818
private readonly CacheConfigurationOptions _config = options.Value;
1919

20-
private readonly string _moduleName = Assembly.GetExecutingAssembly()
21-
.FullName!;
20+
private readonly string _moduleName = Assembly.GetCallingAssembly()
21+
.GetName().Name!;
2222

2323
public async ValueTask<RateLimitState> RateLimitAsync(RateLimitConfiguration rateLimitConfiguration,
2424
CancellationToken cancellationToken = default)

0 commit comments

Comments
 (0)