Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gjbianco/redis-example
https://github.com/gjbianco/redis-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/gjbianco/redis-example
- Owner: gjbianco
- License: mit
- Created: 2018-07-12T18:21:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-26T16:08:36.000Z (over 6 years ago)
- Last Synced: 2024-12-09T12:57:41.553Z (about 1 month ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).