YellowJHelp 3.1.0
dotnet add package YellowJHelp --version 3.1.0
NuGet\Install-Package YellowJHelp -Version 3.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YellowJHelp" Version="3.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YellowJHelp --version 3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YellowJHelp, 3.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install YellowJHelp as a Cake Addin #addin nuget:?package=YellowJHelp&version=3.1.0 // Install YellowJHelp as a Cake Tool #tool nuget:?package=YellowJHelp&version=3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
YellowJAutoInjection
依赖注入功能独立 Nuget 获取YellowJAutoInjection
程序集自动注入说明:满足IOC开发
案列:Net6
在Program类中注入
builder.Host.YJAutofacDiInJect();
或者
builder.Services.YJDiInJect();
类库中满足如:
[AutoInject(typeof(ILoginServer))]
声明的都将自动注入程序集
YellowJHelp
介绍
通用解决方案 缓存,MD5加密,字段截取,集合类型差集计算,Cookie,Session Kafka使用 webapi调用 Redis使用`
软件架构
netstandard2.1 Framework 4.6.1+
集成第三方 |
---|
Confluent.Kafka |
Mapster |
Autofac |
NewLife.Redis |
SqlSugarCore |
版本说明
2.0.0:优化结构,新增Server层和Iserver层,实现接口层封装
方法库函数介绍
YJHelp
YJHelp | IYJHelp |
---|---|
message | 消息注明 |
MD5Encrypt | 32位MD5加密 |
YellowJLog | 文件流日志 |
MidStrEx | 字段截取 |
IsString | string中是否包含某个值 |
Cache | 缓存方法库 |
YJHelpKafka
YJHelpKafka | IYJHelpKafka |
---|---|
Produce | 发布者 |
Produce | 发布者-随机分区 |
ProduceAdmin | 发布者(带账号密码) |
ProduceAdminPartition | 发布者-随机分区(带账号密码) |
YJHelpRedis
YJHelpRedis | IYJHelpRedis |
---|---|
RedisCli | redis 配置中心 |
Get | 获取单个实体 |
GetList | 获取列表List |
Add | 添加,已存在时不更新 |
ListSetW | 写入集合:尾部增加 |
ListSetT | 写入集合:头部增加 |
Clear | 清空所有缓存项 |
Remove | 清空所有缓存项:按Key值 |
GetExpire | 获取缓存项有效期 |
ContainsKey | 是否存在 |
Count | 缓存个数 |
SCARD | 返回集合个数 |
YJHelpT
YJHelpT | IYJHelpT |
---|---|
SpliteSourceBySize | 将集合按大小分组 |
SpliteSourceByCount | 将集合安按组数分组 |
DistinctList | 集合去重(哈西,只针对数值类型) |
Merge | 合并两个集合的函数-不允许有重复项 |
MergeC | 合并两个集合的函数-允许出现重复项 |
DiffsetT | 获取差集(集合) |
安装教程
使用说明
方法库
YJHelp YJHelpKafka YJHelpRedis YJHelpWebApi
参与贡献
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- Confluent.Kafka (>= 2.6.0)
- Mapster (>= 7.3.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.1)
- NewLife.Redis (>= 6.0.2024.1101)
- System.Text.Json (>= 9.0.0)
- YellowJAutoInjection (>= 1.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
优化所有警告信息