initial commit master
[http-memcache-proxy.git] / README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# http-memcache-proxy

A non-compliant HTTP caching proxy.

The behavior of this proxy is:

* Non-cached content is transparently proxied (using [node-http-proxy]).
  * Successful GET or HEAD requests will be cached for subsequent use.
* Cached content will be delivered from memcache.

## Usage

```js
var httpMemCacheProxy = require('./http-memcache-proxy');

httpMemCacheProxy.createServer({
  changeOrigin: true,
  target: {
    host: 'drupal-demo.dev.webstyler.ro',
    port: 80,
  },
  memcache: {'127.0.0.1:11211': 1},
}).listen(8000);
```
comments