101上重新连接103并获取user.1.name的值[root@linuxidc001
~]# redis-cli -h 192.168.1.103 -p 6379 redis 192.168.1.103:6379> get
user.1.name (error) ERR operation .....
分类:
其他好文 时间:
2014-06-11 21:59:58
阅读次数:
255
Given an array where elements are sorted in
ascending order, convert it to a height balanced BST./** * Definition for binary
tree * public class TreeN...
分类:
其他好文 时间:
2014-06-11 21:58:10
阅读次数:
300
原题地址:https://oj.leetcode.com/problems/merge-k-sorted-lists/题意:Mergeksorted
linked lists and return it as one sorted list. Analyze and describe its com...
分类:
编程语言 时间:
2014-06-11 21:57:07
阅读次数:
399
数据库中的数据一般都涉及到需要对数据进行备份的,这样可以保证数据的安全性,并且如果将一个主设备的数据同步到多个从设备上,允许用户访问数据时可以从多个从设备进行读取,这样还可以缓解主设备的压力,Redis作为一个内存数据库同样可以进行数据的同步,并且操作及其简单,Redis进行数据同步,只需要在从服务...
分类:
其他好文 时间:
2014-06-11 13:28:42
阅读次数:
455
原题地址:https://oj.leetcode.com/problems/search-insert-position/题意:Given
a sorted array and a target value, return the index if the target is found. If
n...
分类:
编程语言 时间:
2014-06-11 11:28:40
阅读次数:
349
Given a singly linked list where elements are
sorted in ascending order, convert it to a height balanced BST.public class
Solution { /** Convert th...
分类:
其他好文 时间:
2014-06-10 00:22:44
阅读次数:
259
Suppose a sorted array is rotated at some pivot
unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are
given a target value t...
分类:
其他好文 时间:
2014-06-08 02:05:43
阅读次数:
311
redis是一个key-value存储系统。和Memcached类似,它的效率很高。目前推出了LIN版本和WIN版本.虽然不怎么使用数据库,但是抱着开卷有益的心态,我学习了下其中的数据结构,还是受益良多的。参考
黄健宏 (huangz1990).1、内存管理 redis使用内存头加内存结构 red....
分类:
其他好文 时间:
2014-06-08 01:27:42
阅读次数:
322
Follow up for "Search in Rotated Sorted
Array":What ifduplicatesare allowed?Would this affect the run-time complexity?
How and why?Write a function to...
分类:
其他好文 时间:
2014-06-08 01:19:29
阅读次数:
320
1验证redis的主从复制,将过程抓图实验步骤A.安装RedisB.启动MasterRedisC.创建redis-slave.conf配置文件改动Redisport和打开slaveof设置
port6389 ....... slaveof127.0.0.16379D.启动RedisSlaveE.查看...
分类:
其他好文 时间:
2014-06-07 21:57:53
阅读次数:
215