Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Release 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Nov 10, 2012
1 parent a90f135 commit fed6315
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions 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
==================

Expand Down
11 changes: 7 additions & 4 deletions README.md
Expand Up @@ -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

Expand All @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "webcache",
"version": "0.0.2",
"version": "0.0.3",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit fed6315

Please sign in to comment.