摘要: memcache:默认1024个链接:命令链接:telnet ip memcache端口即可;--add 参数:add (key)(标志,为一个正整数,可以自己定义,比如1,是数组,2是json,淘出来可以反序列化)(缓存有效期0:不失效)(长度,单位字节) --缓存有效期:1.单位是秒:2.时间戳 阅读全文
posted @ 2019-04-02 11:25 Code麒麟 阅读(241) 评论(0) 推荐(0)
摘要: reids存储类型:string list hash set sortedset.高速缓存数据库。缓存,数据缓存,页面缓存。 redis优: 1.支持多数据类型,2.支持主从模式3.支持持久化4.单个value限制是1GB,memcached为1M数据。 redis可以做存储。 redis-serv 阅读全文
posted @ 2019-04-02 11:24 Code麒麟 阅读(493) 评论(0) 推荐(0)
摘要: 第一步先引用Ninject: 第二步:创建个类: 第三步:Global里面配置一下; 第四步:可以使用你创建的实现方法的类(需要使用接口,继承接口的类来实现接口里面的方法) 阅读全文
posted @ 2019-04-02 10:44 Code麒麟 阅读(296) 评论(0) 推荐(0)
摘要: Unity [Dependency] 自动依赖注入 阅读全文
posted @ 2019-03-29 11:07 Code麒麟 阅读(879) 评论(1) 推荐(0)
摘要: HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(str, Encoding.GetEncoding("UTF-8"), "application/json") };//这里是去掉反斜杠再放回出去,json就只剩下双引号。 return result; 阅读全文
posted @ 2019-03-22 15:40 Code麒麟 阅读(8094) 评论(0) 推荐(0)
摘要: //获取选中的所有Id值(数组) var id = new Array(); function GetIdss() { //全选按钮(获取所有选中的复选框)延时函数 setTimeout(GetIds, 1000); } //复选框的点击事件 function GetIds() { //获取所有的复 阅读全文
posted @ 2019-03-21 09:58 Code麒麟 阅读(1463) 评论(0) 推荐(0)
摘要: MemCached 和redis1.性能上: 性能上都很出色,具体到细节,由于Redis只使用单核,而Memcached可以使用多核,所以平均每一个核上Redis在存储小数据时比Memcached性能更高。而在100k以上的数据中,Memcached性能要高于Redis,虽然Redis最近也在存储大 阅读全文
posted @ 2019-03-14 09:30 Code麒麟 阅读(180) 评论(0) 推荐(0)
摘要: MySqlParameter p1 = new MySqlParameter("id", MySqlDbType.Int32); p1.Value = sid; MySqlParameter p2 = new MySqlParameter("result", MySqlDbType.Int32); p2.Direct... 阅读全文
posted @ 2019-03-13 16:53 Code麒麟 阅读(171) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-03-13 14:39 Code麒麟 阅读(3) 评论(0) 推荐(0)
摘要: field : 'pickdate', field : 'pickdate', title : '送货日期', title : '送货日期', width : 100, width : 100, formatter : function(data, row, index) { formatter : 阅读全文
posted @ 2019-03-12 20:25 Code麒麟 阅读(1224) 评论(0) 推荐(0)