api-fairy 0.3.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +12 -6
  2. data/VERSION +1 -1
  3. data/api-fairy.gemspec +1 -1
  4. metadata +2 -2
data/README.md CHANGED
@@ -1,19 +1,25 @@
1
- api-fairy
2
- =========
1
+ [api-fairy](http://goo.gl/6vNFM)
2
+ =========================
3
3
 
4
4
  [![Build Status](https://secure.travis-ci.org/aq1018/api-fairy.png?branch=master)](http://travis-ci.org/aq1018/api-fairy)
5
5
 
6
6
 
7
7
  api-fairy is a Rack Middleware that **magically** speeds up your slow backend services just by including it in your rack based application. It can be used to speed up API services with slow backends, but you can also use it in any generic rack apps including Ruby On Rails.
8
8
 
9
+ **Differences with rack-cache**
10
+
11
+ `Rack::Cache` focuses on HTTP caching by using http headers such as `Expires` or `Cache-Control`. This gem focuses on the other side of the coin where the backend responses and data are cached. This gem is a complement to `Rack::Cache` so you can speedup your application even more.
12
+
9
13
  api-fairy packs the following features in a small package:
10
14
 
11
15
  * Localized dynamic cache. No memcache server needed.
12
16
  * Efficient memory usage. The memory usage rate is constant.
13
17
  * Multi-thread safe. Supports threaded ruby applications.
14
18
  * Works on ruby 1.8.7, 1.9.2, and 1.9.3
19
+ * Small code base. Only 21 lines of code.
15
20
  * Dramatically increase your applciation speed by 5 - 10 times depending on the backend.
16
- * It literally turns your application into **magic**
21
+ * It literally turns your application into [**magic**](http://goo.gl/6vNFM)
22
+
17
23
 
18
24
  Benchmark
19
25
  ---------
@@ -28,7 +34,7 @@ Server Software:
28
34
  Server Hostname: localhost
29
35
  Server Port: 3000
30
36
 
31
- Document Path: /listings?g=glendale+ca&q=pizza
37
+ Document Path: /
32
38
  Document Length: 60678 bytes
33
39
 
34
40
  Concurrency Level: 5
@@ -72,7 +78,7 @@ Server Software:
72
78
  Server Hostname: localhost
73
79
  Server Port: 3000
74
80
 
75
- Document Path: /listings?g=glendale+ca&q=pizza
81
+ Document Path: /
76
82
  Document Length: 5 bytes
77
83
 
78
84
  Concurrency Level: 5
@@ -119,7 +125,7 @@ Install
119
125
  **Bundler**
120
126
 
121
127
  ```ruby
122
- gem "api-fairy", ">= 0.2.0"
128
+ gem "api-fairy", "= 0.4.1"
123
129
  ```
124
130
 
125
131
  Usage
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "api-fairy"
8
- s.version = "0.3.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aaron Qian"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-fairy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  segments:
146
146
  - 0
147
- hash: 2925224066698913283
147
+ hash: 3563130661427665150
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements: