diff --git a/History.md b/History.md index a9998d0..8f55975 100644 --- a/History.md +++ b/History.md @@ -1,4 +1,10 @@ +0.0.3 / 2012-11-10 +================== + + * add RedisStore support webcache.createStore("redis", redisClient) + * add redis test cases + 0.0.2 / 2012-11-10 ================== diff --git a/README.md b/README.md index cda1d9f..4bd3043 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,17 @@ webcache [![Build Status](https://secure.travis-ci.org/fengmk2/webcache.png)](ht Web Cache middleware base on `req.url`. +`webcache` can cache all `'text/*'` content type. + You can use any cache store engine which implement `set()` and `get()` methods. * jscoverage: [98%](http://fengmk2.github.com/coverage/webcache.html) ## Support Cache Store -* redis -* mredis -* tair +* [redis](https://github.com/mranney/node_redis) +* [mredis](https://github.com/dead-horse/multi_redis) +* [tair](https://github.com/sunfang1cn/node-tair) (TODO) ## Install @@ -26,10 +28,11 @@ $ npm install webcache ```js var connect = require('connect'); var webcache = require('webcache'); +var redis = require('redis').createClient(); var app = connect(); app.use(webcache{ - webcache.redisStore(redis), + webcache.createStore('redis', redis), [ // cache `GET /article/*` response for one hour, ignore querystring params, enable browser cache { match: /^\/article\/\w+/, maxAge: 3600000, ignoreQuerystring: true, clientCache: true }, diff --git a/package.json b/package.json index 2121bca..47529cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webcache", - "version": "0.0.2", + "version": "0.0.3", "description": "", "main": "index.js", "scripts": {