mac下使用android studio,解决无法打开问题。
1,下载最新的android studio
http://developer.android.com/sdk/installing/index.html?pkg=studio
mac下直接安装。但是启动不了,一直显示进度。
修改app应用权限。
菜单 System Preferences > Security 下, 选择 select Anywhere。
2
redis TTL实现原理
TTL存储的数据结构
redis针对TTL时间有专门的dict进行存储,就是redisDb当中的dict *expires字段,dict顾名思义就是一个hashtable,key为对应的rediskey,value为对应的TTL时间。
.NET面试题解析(06)-GC与内存管理
转自:http://www.cnblogs.com/anding/p/5260319.html
常见面试题目:
1. 简述一下一个引用对象的生命周期?
2. 创建下面对象实例,需要申请多少内存空间?
public class User
{
public int Age { get; ...
mysql hash 索引 vs B-TREE 索引
Terry Tsang
//我相信最有价值的东西,是很多人都应该因为它而一起学习和进步的!真正有价值的技术,都是值得和所有人分享的!
hash 索引
当前 memory 引擎, innodb 引擎支持 hash 索引, 索引将存放内存中. (innodb 存放 buffer pool)
innodb 启动 innodb-adaptive-hash-index 参数就