一、Redis的Replication:下面的列表清楚的解释了Redis
Replication的特点和优势。 1). 同一个Master可以同步多个Slaves。 2).
Slave同样可以接受其它Slaves的连接和同步请求,这样可以有效的分载Master的同步压力。因此我们可以将Redis的R...
分类:
数据库 时间:
2014-05-27 02:42:59
阅读次数:
392
一.什么是redis
?其官方介绍是:Redisiswhatiscalledakey-valuestore,oftenreferredtoasaNoSQLdatabase.Redis
is an open source, BSD licensed, advancedkey-value store.I...
分类:
其他好文 时间:
2014-05-27 02:16:59
阅读次数:
318
数据排序方法 原地排序sort()方法 复制排序sorted()函数
分类:
编程语言 时间:
2014-05-24 06:40:44
阅读次数:
215
数据库主要类型有对象数据库,关系数据库,键值数据库等等,对象数据库太超前了,现阶段不提也罢;关系数据库就是平常说的MySQL,PostgreSQL这些熟的不能再熟的东西,至于键值数据库则是本文要着重说的,其代表主要有MemcacheDB,Tokyo
Cabinet等等。Redis本质上也是一种键值数...
分类:
其他好文 时间:
2014-05-23 23:49:15
阅读次数:
566
Remove Duplicates from Sorted Array IIFollow up
for "Remove Duplicates":What if duplicates are allowed at mosttwice?For
example,Given sorted array A =...
分类:
其他好文 时间:
2014-05-23 10:23:40
阅读次数:
250
戳我去解题Given an array where elements are sorted in
ascending order, convert it to a height balanced
BST.分析:因为BST中序序列是升序的,所以中序遍历序列最中间的元素一定是根节点,然后左右递归构建二叉...
分类:
其他好文 时间:
2014-05-20 11:38:16
阅读次数:
233
戳我去解题Merge two sorted linked lists and return it as
a new list. The new list should be made by splicing together the nodes of the
first two lists.分析:直...
分类:
其他好文 时间:
2014-05-20 08:52:09
阅读次数:
277
Search in Rotated Sorted Array ISuppose a
sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5
6 7 might become 4 5 6 7 0 ...
分类:
其他好文 时间:
2014-05-19 12:30:00
阅读次数:
388
Remove Duplicates from Sorted Array IGiven a
sorted array, remove the duplicates in place such that each element appear only
once and return the new l...
分类:
其他好文 时间:
2014-05-19 12:10:41
阅读次数:
329
ledisdb现在可以支持嵌入式使用。你可以将其作为一个独立的lib(类似leveldb)直接嵌入到你自己的应用中去,而无需在启动单独的服务。ledisdb提供的API仍然类似redis接口。首先,你需要创建db对象:import "github.com/siddontang/ledisdb/ledis"
configJson = []byte('{
"data_db" :
{...
分类:
数据库 时间:
2014-05-18 05:02:25
阅读次数:
412