Redis 进阶之路 Redis安装 redis简介: redis是NOSQL(not only sql,非关系型数据库)的一种,NoSQL是以Key-Value的形式存储数据,当前主流的分布式缓存技术有Redis, memcached,ssdb,mongodb 等。可以把redis理解为缓存技术, ...
分类:
其他好文 时间:
2018-10-19 00:16:12
阅读次数:
213
Redis支持的类型: String,List,Map,Set,Sorted set Redis的持久化: 1、Redis DataBase (RDB): RDB是在某个时间点将数据写入一个临时文件,持久化结束后,用这个临时文件替换上次持久化的文件,达到数据恢复。 优点:使用单独子进程来进行持久化, ...
分类:
其他好文 时间:
2018-10-18 22:05:05
阅读次数:
124
python 列表排序方法sort、sorted技巧篇 Python list内置sort()方法用来排序,也可以用python内置的全局sorted()方法来对可迭代的序列排序生成新的序列。 1)排序基础 简单的升序排序是非常容易的。只需要调用sorted()方法。它返回一个新的list,新的li ...
分类:
编程语言 时间:
2018-10-18 22:00:53
阅读次数:
258
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra spa ...
分类:
其他好文 时间:
2018-10-18 14:02:54
阅读次数:
106
Python list内置sort()方法用来排序,也可以用python内置的全局sorted()方法来对可迭代的序列排序生成新的序列。 1)排序基础 简单的升序排序是非常容易的。只需要调用sorted()方法。它返回一个新的list,新的list的元素基于小于运算符(__lt__)来排序。 代码如 ...
分类:
编程语言 时间:
2018-10-18 13:58:29
阅读次数:
153
You are given an integer array sorted in ascending order (may contain duplicates), you need to split them into several subsequences, where each subseq ...
分类:
编程语言 时间:
2018-10-18 11:02:35
阅读次数:
215
Convert a BST to a sorted circular doubly-linked list in-place. Think of the left and right pointers as synonymous to the previous and next pointers i ...
分类:
其他好文 时间:
2018-10-18 10:57:59
阅读次数:
180
Given a list of sorted characters letterscontaining only lowercase letters, and given a target letter target, find the smallest element in the list th ...
分类:
其他好文 时间:
2018-10-18 01:17:00
阅读次数:
132
Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If targetexists, t ...
分类:
其他好文 时间:
2018-10-17 17:47:10
阅读次数:
121