1. Redis简介及安装 Redis 简介 Redis 是完全开源免费的,遵守BSD协议,是一个高性能的key-value数据库。 Redis 与其他 key - value 缓存产品有以下三个特点: Redis支持数据的持久化,可以将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。 R ...
分类:
其他好文 时间:
2017-09-12 10:41:51
阅读次数:
274
retrieve to get something back scrap to discard or discontinue something because it is considered useless or ineffective measure to find out the size, ...
分类:
移动开发 时间:
2017-08-29 10:12:10
阅读次数:
160
redis事务 redis 数据库支持事务 开始是multi 提交是exec 回滚是discard Redis默认的方式,redis通过快照来将数据持久化到磁盘中。 在redis.conf中修改持久化快照的条件,如下: Redis默认是不使用该方式持久化的。Aof方式的持久化,是操作一次redis数 ...
分类:
其他好文 时间:
2017-08-27 22:24:45
阅读次数:
170
DiscardServer 1 package io.netty.example.discard; 2 3 import io.netty.bootstrap.ServerBootstrap; 4 5 import io.netty.channel.ChannelFuture; 6 import i ...
分类:
Web程序 时间:
2017-08-26 17:01:55
阅读次数:
277
这道题还是对于Integer的处理,在Reverse Integer这道题中我有提到,这种题的考察重点并不在于问题本身,而是要注意corner case的处理,整数一般有两点,一个是正负符号问题,另一个是整数越界问题。思路比较简单,就是先去掉多余的空格字符,然后读符号(注意正负号都有可能,也有可能没 ...
分类:
其他好文 时间:
2017-08-11 10:47:30
阅读次数:
200
In the below network topology a web server behind a router is on private IP address space, and the router performs NAT to forward traffic to its publi ...
分类:
其他好文 时间:
2017-08-01 14:26:47
阅读次数:
745
事务相关命令 Redis通过multi,discard,exec和watch四个命令来实现事务功能, 一般事务 multi discard exec 特殊:watch 服务器在执行完事务中的所有命令之后,才会继续处理其他客户端的其他命令 事务由multi开启,将多个命令入队到事务中,最后exec命令 ...
分类:
其他好文 时间:
2017-07-29 13:57:51
阅读次数:
149
集合 Set,去重,关系测试:交、并、差等;无序 list_1=set(list_1), type(list_1) list_2=set([xxxxx]) 交集:list_1.intersectin(list_2), list_1 & list_2 并集:list_1.union(list_2), ...
分类:
编程语言 时间:
2017-07-29 00:02:47
阅读次数:
204
最近要做个游戏场景编辑器,需要directx11配合gui框架使用,所以简单地弄了一个directx11嵌入到Qt窗体中的程序。 1 建立工程 建一个Qt的工程,配置好directx的包含目录和库目录(以及附加依赖项),Qt vs2013 add-in的话很方便,直接在vs2013里面加,Qt cr ...
分类:
其他好文 时间:
2017-07-28 22:14:47
阅读次数:
264
在Python set是基本数据类型的一种集合类型,它有可变集合(set())和不可变集合(frozenset)两种。创建集合set、集合set添加、集合删除、交集、并集、差集的操作都是非常实用的方法。 list_1 = set([1,3,5,7,5,8,10])list_2 = set([2,3, ...
分类:
编程语言 时间:
2017-07-26 17:34:06
阅读次数:
160