Skip to content

Commit 5b2e214

Browse files
committed
more overloads on string extensions
1 parent 546a352 commit 5b2e214

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
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>4.0.1</Version>
11+
<Version>4.0.2</Version>
1212
<PackageId>Pandatech.DistributedCache</PackageId>
1313
<Title>Pandatech Distributed Cache</Title>
1414
<PackageTags>pandatech;cache;hybrid-cache;distributed-cahce;message-pack;rate-limiting;redis-lock;redis;fusion-cache</PackageTags>
1515
<Description>Pandatech.DistributedCache is a lightweight .NET library that extends the new HybridCache abstraction for seamless distributed caching on top of Redis. It provides strongly typed caching with MessagePack serialization, distributed locking, rate limiting, and stampede protection. With fewer than 500 lines of code, it is both easy to understand and simple to adopt, while still offering robust features for production environments.</Description>
1616
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-distributed-cache</RepositoryUrl>
17-
<PackageReleaseNotes>Nullability fix</PackageReleaseNotes>
17+
<PackageReleaseNotes>More overloads on string extensions</PackageReleaseNotes>
1818
</PropertyGroup>
1919

2020
<ItemGroup>

src/DistributedCache/Extensions/StringExtensions.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,16 @@ public static string PrefixWith(this string value, Assembly assembly)
1313
{
1414
return $"{assembly.GetName().Name}:{value}";
1515
}
16+
17+
public static List<string> PrefixWith(this IEnumerable<string> values, string prefix)
18+
{
19+
return values.Select(x => x.PrefixWith(prefix))
20+
.ToList();
21+
}
22+
23+
public static List<string> PrefixWith(this IEnumerable<string> values, Assembly assembly)
24+
{
25+
return values.Select(x => x.PrefixWith(assembly))
26+
.ToList();
27+
}
1628
}

0 commit comments

Comments
 (0)