Redis - 发布/订阅模式
摘要:Redis 提供了一组命令可以让开发者实现 “发布/订阅” 模式。“发布/订阅” 可以实现进程间的消息传递,其原理是这样的: “发布/订阅” 模式中包含两种角色,分别是发布者和订阅者。订阅者可以订阅一个或若干个频道(channel),而发布者可以向指定的频道发送消息,所有订阅此频道的订阅者都会收到此
阅读全文
posted @
2016-07-31 17:32
huey2672
阅读(678)
推荐(0)
Jersey(1.19.1) - Client API, Proxy Configuration
摘要:为 Jersey Client 设置代理,可以使用带有 ClientHandler 参数的构造方法创建 Client 实例。
阅读全文
posted @
2016-07-31 00:01
huey2672
阅读(1216)
推荐(0)
HttpClient(4.3.5) - HttpClient Proxy Configuration
摘要:Even though HttpClient is aware of complex routing scemes and proxy chaining, it supports only simple direct or one hop proxy connections out of the b
阅读全文
posted @
2016-07-30 20:09
huey2672
阅读(919)
推荐(0)
HttpClient(4.3.5) - Redirect Handling
摘要:HttpClient handles all types of redirects automatically, except those explicitly prohibited by the HTTP specification as requiring user intervention.
阅读全文
posted @
2016-07-30 16:54
huey2672
阅读(397)
推荐(0)
HttpClient(4.3.5) - HTTP Protocol Interceptors
摘要:The HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol. Usually protocol interceptors are expected to act u
阅读全文
posted @
2016-07-30 16:52
huey2672
阅读(412)
推荐(0)
HttpClient(4.3.5) - HTTP Execution Context
摘要:Originally HTTP has been designed as a stateless, response-request oriented protocol. However, real world applications often need to be able to persis
阅读全文
posted @
2016-07-30 15:49
huey2672
阅读(358)
推荐(0)
HttpClient(4.3.5) - HTTP Header
摘要:An HTTP message can contain a number of headers describing properties of the message such as the content length, content type and so on. HttpClient pr
阅读全文
posted @
2016-07-30 12:10
huey2672
阅读(697)
推荐(0)
HttpClient(4.3.5) - HTTP Request & HTTP Response
摘要:HTTP Request All HTTP requests have a request line consisting a method name, a request URI and an HTTP protocol version. HttpClient supports out of th
阅读全文
posted @
2016-07-30 11:58
huey2672
阅读(359)
推荐(0)
Table of Contents - HttpClient
摘要:HttpClient 4.3.5 Getting Started HttpClient 简单示例 Fundamentals Request Execution HTTP Request & HTTP Response HTTP Header HTTP Entity ResponseHandler H
阅读全文
posted @
2016-07-30 11:45
huey2672
阅读(135)
推荐(0)
Nginx - Windows 环境安装 Nginx
摘要:1. 访问 http://nginx.org/en/download.html,下载 Windows 版本的安装包 2. 解压安装包,双击 nginx.exe,启动 nginx 3. 访问 http://localhost/,验证是否成功。 4. 其他操作:
阅读全文
posted @
2016-07-13 15:34
huey2672
阅读(271)
推荐(0)
Redis - 事务
摘要:Redis 中的事务是一组命令的集合。事务同命令一样都是 Redis 的最小执行单位,一个事务中的命令要么都执行,要么都不执行。事务的应用非常普遍,如银行转账过程中 A 给 B 汇款,首先系统从 A 的账户将钱划走,然后向 B 的账户增加相应的金额。这两个不走必须属于同一个事务,要么全都执行要么全都
阅读全文
posted @
2016-07-10 20:17
huey2672
阅读(241)
推荐(0)
Redis - 排序
摘要:SORT 命令格式 SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination] 基本用法 SORT 命令可以对列表类型、集合类型和有
阅读全文
posted @
2016-07-09 00:37
huey2672
阅读(884)
推荐(0)
Lua - 基础语法
摘要:Hello World 交互式编程 Lua 交互式编程模式可以通过命令 lua -i 或 lua 来启用: 脚本式编程 我们可以将 Lua 程序代码保持到一个以 lua 结尾的文件,并执行,该模式称为脚本式编程,如我们将如下代码存储在名为 hello.lua 的脚本文件中: 使用 lua 命令执行以
阅读全文
posted @
2016-07-08 17:55
huey2672
阅读(407)
推荐(0)
Redis - HyperLogLogs
摘要:A HyperLogLog is a probabilistic data structure used in order to count unique things (technically this is referred to estimating the cardinality of a
阅读全文
posted @
2016-07-07 11:09
huey2672
阅读(633)
推荐(0)
Commons Configuration2 - Quick start guide
摘要:原文:http://commons.apache.org/proper/commons-configuration/userguide/quick_start.html Reading a properties file Configuration information is frequently
阅读全文
posted @
2016-07-01 17:40
huey2672
阅读(1647)
推荐(0)