StackExchange.Redis 1.0.228
High performance Redis client, incorporating both synchronous and asynchronous usage; the notional successor to BookSleeve
Showing the top 20 packages that depend on StackExchange.Redis.
| Packages | Downloads |
|---|---|
|
Masuit.Tools.Core
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取线程内唯一对象
CallContext<T>.GetData("db");
3.获取当前请求上下文
var context=HttpContext2.Current;
4.获取IP详细地理信息
var address="114.114.114.114".GetPhysicsAddress();
5.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
6.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" />
<!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]-->
<script src="/Scripts/modernizr"></script>
<div id="searchBox" role="search">
<form action="/packages" method="get">
<span class="user-actions"><a href="/users/account/LogOff">退出</a></span>
<input name="q" id="searchBoxInput" />
<input id="searchBoxSubmit" type="submit" value="Submit" />
</form>
</div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
|
3 |
|
Masuit.Tools.Core
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取CPU核心数
int core = SystemInfo.GetCpuCount();
3.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
4.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" /><!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]--><script src="/Scripts/modernizr"></script><div id="searchBox" role="search"><form action="/packages" method="get"><span class="user-actions"><a href="/users/account/LogOff">退出</a></span><input name="q" id="searchBoxInput" /><input id="searchBoxSubmit" type="submit" value="Submit" /></form></div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
5.整理操作系统的内存:
Windows.ClearMemorySilent();
......
|
2 |
|
Masuit.Tools.Core
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取线程内唯一对象
CallContext<T>.GetData("db");
3.获取当前请求上下文
var context=HttpContext2.Current;
4.获取IP详细地理信息
var address="114.114.114.114".GetPhysicsAddress();
5.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
6.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" />
<!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]-->
<script src="/Scripts/modernizr"></script>
<div id="searchBox" role="search">
<form action="/packages" method="get">
<span class="user-actions"><a href="/users/account/LogOff">退出</a></span>
<input name="q" id="searchBoxInput" />
<input id="searchBoxSubmit" type="submit" value="Submit" />
</form>
</div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
|
2 |
|
Masuit.Tools.Core
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
3.html的防XSS处理:
string html = @"<link href='/Content/font-awesome/css' rel='stylesheet'/>
<!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]-->
<script src='/Scripts/modernizr'></script>
<div id='searchBox' role='search'>
<form action='/packages' method='get'>
<span class='user-actions'><a href='/users/account/LogOff'>退出</a></span>
<input name='q' id='searchBoxInput'/>
<input id='searchBoxSubmit' type='submit' value='Submit' />
</form>
</div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
......
|
1 |
|
Masuit.Tools.Core
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取线程内唯一对象
CallContext<T>.GetData("db");
3.获取当前请求上下文
var context=HttpContext2.Current;
4.获取IP详细地理信息
var address="114.114.114.114".GetPhysicsAddress();
5.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
6.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" />
<!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]-->
<script src="/Scripts/modernizr"></script>
<div id="searchBox" role="search">
<form action="/packages" method="get">
<span class="user-actions"><a href="/users/account/LogOff">退出</a></span>
<input name="q" id="searchBoxInput" />
<input id="searchBoxSubmit" type="submit" value="Submit" />
</form>
</div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
|
1 |
This package has no dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 2.10.1 | 1 | 01/10/2026 |
| 2.9.32 | 1 | 01/10/2026 |
| 2.9.25 | 1 | 01/10/2026 |
| 2.9.17 | 1 | 01/10/2026 |
| 2.9.11 | 1 | 01/10/2026 |
| 2.8.58 | 1 | 01/10/2026 |
| 2.8.47 | 1 | 01/10/2026 |
| 2.8.41 | 1 | 01/10/2026 |
| 2.8.37 | 1 | 01/10/2026 |
| 2.8.31 | 1 | 01/10/2026 |
| 2.8.24 | 1 | 01/10/2026 |
| 2.8.22 | 1 | 01/10/2026 |
| 2.8.16 | 1 | 01/10/2026 |
| 2.8.14 | 1 | 01/10/2026 |
| 2.8.12 | 1 | 01/10/2026 |
| 2.8.0 | 1 | 01/10/2026 |
| 2.7.33 | 1 | 01/10/2026 |
| 2.7.27 | 1 | 01/10/2026 |
| 2.7.23 | 1 | 01/10/2026 |
| 2.7.20 | 1 | 01/10/2026 |
| 2.7.17 | 1 | 01/10/2026 |
| 2.7.10 | 1 | 01/10/2026 |
| 2.7.4 | 1 | 01/10/2026 |
| 2.6.122 | 1 | 01/10/2026 |
| 2.6.116 | 1 | 01/10/2026 |
| 2.6.111 | 1 | 01/10/2026 |
| 2.6.104 | 1 | 01/10/2026 |
| 2.6.96 | 1 | 01/10/2026 |
| 2.6.90 | 1 | 01/10/2026 |
| 2.6.86 | 1 | 01/10/2026 |
| 2.6.80 | 1 | 01/10/2026 |
| 2.6.70 | 1 | 01/10/2026 |
| 2.6.66 | 1 | 01/10/2026 |
| 2.6.48 | 1 | 01/10/2026 |
| 2.5.61 | 1 | 01/10/2026 |
| 2.5.43 | 1 | 01/10/2026 |
| 2.2.88 | 1 | 01/10/2026 |
| 2.2.79 | 1 | 01/10/2026 |
| 2.2.50 | 1 | 01/10/2026 |
| 2.2.4 | 1 | 01/10/2026 |
| 2.2.3 | 1 | 01/10/2026 |
| 2.1.58 | 1 | 01/10/2026 |
| 2.1.55 | 1 | 01/10/2026 |
| 2.1.30 | 1 | 01/10/2026 |
| 2.1.28 | 1 | 01/10/2026 |
| 2.0.601 | 1 | 01/10/2026 |
| 2.0.600 | 1 | 01/10/2026 |
| 2.0.593 | 1 | 01/10/2026 |
| 2.0.588 | 1 | 01/10/2026 |
| 2.0.571 | 1 | 01/10/2026 |
| 2.0.519 | 1 | 01/10/2026 |
| 2.0.513 | 1 | 01/10/2026 |
| 2.0.505 | 1 | 01/10/2026 |
| 2.0.495 | 1 | 01/10/2026 |
| 1.2.6 | 1 | 01/10/2026 |
| 1.2.5 | 1 | 01/10/2026 |
| 1.2.4 | 1 | 01/10/2026 |
| 1.2.3 | 1 | 01/10/2026 |
| 1.2.1 | 1 | 01/10/2026 |
| 1.2.0 | 1 | 01/10/2026 |
| 1.2.0-alpha1 | 1 | 01/10/2026 |
| 1.1.608 | 1 | 01/10/2026 |
| 1.1.606 | 1 | 01/10/2026 |
| 1.1.605 | 1 | 01/10/2026 |
| 1.1.604-alpha | 1 | 01/10/2026 |
| 1.1.603 | 1 | 01/10/2026 |
| 1.1.572-alpha | 1 | 01/10/2026 |
| 1.1.553-alpha | 1 | 01/10/2026 |
| 1.1.0-alpha2 | 1 | 01/10/2026 |
| 1.1.0-alpha1 | 1 | 01/10/2026 |
| 1.0.488 | 1 | 01/10/2026 |
| 1.0.481 | 1 | 01/10/2026 |
| 1.0.479 | 1 | 01/10/2026 |
| 1.0.450 | 1 | 01/10/2026 |
| 1.0.414 | 1 | 01/10/2026 |
| 1.0.394 | 1 | 01/10/2026 |
| 1.0.371 | 1 | 01/10/2026 |
| 1.0.333 | 1 | 01/10/2026 |
| 1.0.331 | 1 | 01/10/2026 |
| 1.0.330 | 1 | 01/10/2026 |
| 1.0.329 | 1 | 01/10/2026 |
| 1.0.328 | 1 | 01/10/2026 |
| 1.0.322 | 1 | 01/10/2026 |
| 1.0.321 | 1 | 01/10/2026 |
| 1.0.320 | 1 | 01/10/2026 |
| 1.0.312 | 1 | 01/10/2026 |
| 1.0.297 | 1 | 01/10/2026 |
| 1.0.289 | 1 | 01/10/2026 |
| 1.0.281 | 1 | 01/10/2026 |
| 1.0.278 | 1 | 01/10/2026 |
| 1.0.273 | 1 | 01/10/2026 |
| 1.0.270 | 1 | 01/10/2026 |
| 1.0.247 | 1 | 01/10/2026 |
| 1.0.245 | 1 | 01/10/2026 |
| 1.0.243 | 1 | 01/10/2026 |
| 1.0.242 | 1 | 01/10/2026 |
| 1.0.241 | 1 | 01/10/2026 |
| 1.0.240 | 1 | 01/10/2026 |
| 1.0.238 | 1 | 01/10/2026 |
| 1.0.236 | 1 | 01/10/2026 |
| 1.0.233 | 1 | 01/10/2026 |
| 1.0.231 | 1 | 01/10/2026 |
| 1.0.228 | 1 | 01/10/2026 |
| 1.0.223 | 1 | 01/10/2026 |
| 1.0.221 | 1 | 01/10/2026 |
| 1.0.219 | 1 | 01/10/2026 |
| 1.0.214 | 1 | 01/10/2026 |
| 1.0.210 | 1 | 01/10/2026 |
| 1.0.209 | 1 | 01/10/2026 |
| 1.0.207 | 1 | 01/10/2026 |
| 1.0.206 | 1 | 01/10/2026 |
| 1.0.190 | 1 | 01/10/2026 |
| 1.0.187 | 1 | 01/10/2026 |