摘要: Redis是用C语言编写的开源软件,可以运行在Linux上,目前不支持Windows。Redis通常会被用于缓存、数据持久化、消息队列,Redis避免了服务器挂掉后,内存数据丢失的问题。Redis支持5种数据结构: strings, hashes, lists, sets, sorted sets,而且对于这些数据结构上的操作都是原子性的,这意味着操作这些集合是线程安全的;Redis首先是把数据集放在内存上的,可以设置每隔一段儿时间持久化数据到硬盘,如果工程中仅仅需要Redis做缓存,持久化也是可以被禁止的;Redis支持像Mysql一样的主从同步,主服务器上的数据可以同步到N个从服务器上,可以读写分离。 阅读全文
posted @ 2016-04-17 02:23 般若一号 阅读(998) 评论(0) 推荐(0) 编辑
摘要: Java研发工程师方向 实习面试, 面试官很和善,抱着和你聊一聊的心态和你聊天,总体感觉阿里面试特别偏向Java,我简略回忆一下。1. 介绍以前实习经历,以及设计的项目,我说了以前做过的公司内部使用的系统,面试官提出如果对于访问量特别大的情况下,你有哪些优化方案?设置缓存;数据库读写分离;2. 说一... 阅读全文
posted @ 2015-04-28 09:20 般若一号 阅读(644) 评论(0) 推荐(0) 编辑
摘要: Implement pow(x, n). 阅读全文
posted @ 2014-06-22 13:27 般若一号 阅读(398) 评论(0) 推荐(0) 编辑
摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is defined as a character sequence consists of non-space characters only. 阅读全文
posted @ 2014-06-21 17:49 般若一号 阅读(497) 评论(0) 推荐(0) 编辑
摘要: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively. 阅读全文
posted @ 2014-06-21 11:00 般若一号 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Given two sorted integer arrays A and B, merge B into A as one sorted array. You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B. The number of elements initialized in A and B are m and n respectively. 阅读全文
posted @ 2014-06-12 23:52 般若一号 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 实现windows phone控制PC端PPT的播放 阅读全文
posted @ 2014-05-29 21:44 般若一号 阅读(1761) 评论(3) 推荐(4) 编辑
摘要: 二叉树递归遍历飞递归遍历、层序遍历、二叉树建立销毁、二叉树树高树深、二叉树的按顺序建立搜索树。 阅读全文
posted @ 2014-04-27 01:27 般若一号 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 数据结构中的七种排序算法实现,没有写基数排序。 阅读全文
posted @ 2014-04-27 00:22 般若一号 阅读(414) 评论(0) 推荐(0) 编辑
摘要: Sudoku 阅读全文
posted @ 2013-12-22 16:04 般若一号 阅读(6262) 评论(0) 推荐(0) 编辑