Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gjbianco/redis-example


https://github.com/gjbianco/redis-example

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# redis-example

https://github.com/gjbianco/redis-example

Very simple example of caching with Redis in Node.

Has a route that lists number of repos in provided GitHub Organization. e.g.

`/repos?org=ansible`

Also has an echo route that echoes whatever is sent as "org". e.g.

`/repos?org=foo`

Looks at `PORT` (default: 8080) for port to bind and `REDIS_URL` for the Redis URL string to connect (default: '//localhost:6379'). Set `REDIS_TIMEOUT` (default: 5 seconds) to set cache value timeout (in seconds).