# smart-static-redis-cache

> Redis cache engine for smart-static.

Latest version **1.0.1** (published 2015-08-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install smart-static-redis-cache
pnpm add smart-static-redis-cache
yarn add smart-static-redis-cache
bun add smart-static-redis-cache
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-08-24 |
| First published | 2015-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kristian Trenskow |
| Maintainers | trenskow |

## Links

- npm: https://www.npmjs.com/package/smart-static-redis-cache
- Repository: https://github.com/trenskow/smart-static-redis-cache
- Issues: https://github.com/trenskow/smart-static-redis-cache/issues
- npm.io page: https://npm.io/package/smart-static-redis-cache

## Dependencies (1)

- [redis](https://npm.io/package/redis.md) ^0.12.1

## Recent versions

- 1.0.1 (latest) — 2015-08-24
- 1.0.0 — 2015-06-23

## README

smart-static-redis-cache
=====================

[![Build Status](https://travis-ci.org/trenskow/smart-static-redis-cache.svg?branch=master)](https://travis-ci.org/trenskow/smart-static-redis-cache)

File system cache engine for [smart-static](https://github.com/trenskow/smart-static.js).

# How to Use

Usage:

    redisCache()
    redisCache(port)
    redisCache(port, host)

`port` defaults to 6379 and host to `127.0.0.1`.

## Example

    var http = require('http');

    var smartStatic = require('smart-static');
    var redisCache = require('smart-static-redis-cache');

    var server = http.createServer(smartStatic(serveDir, {
        cache: redisCache(6379, '127.0.0.1')
    ));

    server.listen(8000);

> Remark. It does not make sense to use caching without template engine plug-ins - as only template renderings are cached. See [smart-static](https://github.com/trenskow/smart-static) for available template plug-ins.

# License

MIT

---
_Source: https://npm.io/package/smart-static-redis-cache · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
