redis+主从复制+集群配置redis是一个key-value存储系统。和memcached类似,不过redis支持的value类型更多,主要有:string(字符串)、list(链表)、set(集合)、zset(有序集合)和hash(哈希类型)。redis和memcached一样,为了保证效率,都是把数据缓存在内存中。区别是redi..
分类:
其他好文 时间:
2016-07-01 16:46:40
阅读次数:
170
<!doctypehtml>
<html>
<head>
<metacharset="utf-8">
<title>简单易用的倒计时js代码</title>
<style>
*{margin:0;padding:0;list-style:none;}
body{font-size:18px;text-align:center;}
.time{height:30px;padding:200px;}
</..
分类:
其他好文 时间:
2016-07-01 16:41:35
阅读次数:
153
反射: 1、可通过字符串的形式导入模块 1.1、单层导入 1 __import__('模块名') 1.2、多层导入 1 __import__(' list.text.commons',fromlist=True) #如果不加上fromlist=True,只会导入list目录 2、可以通过字符串的形式 ...
分类:
编程语言 时间:
2016-07-01 16:07:11
阅读次数:
237
在开发中,有时会需要指定字段去重,以下为实现方法: 假设有个房地产权的类,其中宗地代码ZDDM值重复,而我们在前端页面显示时,只需要一条数据,因为公共字段都一样; IEqualityComparer需引入程序集——using System.Collections; ...
分类:
其他好文 时间:
2016-07-01 13:31:36
阅读次数:
118
These classes include NSTextView, NSFont and NSColorSpace; for the full list, see Transitioning to ARC Release Notes. 但是如果你真的想在这些类中使用weak进行修饰,可以使用不安全的 ...
分类:
其他好文 时间:
2016-07-01 13:19:37
阅读次数:
142
# systemctl #输出已激活单元# systemctl list-units #输出已激活单元# systemctl --failed #输出运行失败的单元# systemctl list-unit-files #查看所有已安装服务# systemctl start nginx #启动ngi ...
分类:
其他好文 时间:
2016-07-01 11:35:20
阅读次数:
109
package com.example.llltyt;import java.util.ArrayList;import java.util.List;import com.baidu.adapter.PagerMyAdapter;import com.baidu.fragment.f1;impor ...
分类:
其他好文 时间:
2016-07-01 08:54:10
阅读次数:
205
http://www.runoob.com/java/java-tutorial.html http://www.51zxw.net/list.aspx?cid=380 http://www.weixueyuan.net/java/rumen/ http://c.biancheng.net/cpp/ ...
分类:
编程语言 时间:
2016-07-01 06:42:01
阅读次数:
290
Flatten a binary tree to a fake "linked list" in pre-order traversal. Here we use the right pointer in TreeNode as the next pointer in ListNode. For e ...
分类:
其他好文 时间:
2016-07-01 06:30:03
阅读次数:
165