Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/minho42/curl-with-redis-cache

a command-line utility to cache curl results using local redis
https://github.com/minho42/curl-with-redis-cache

cli curl nodejs redis redis-cache

Last synced: 23 days ago
JSON representation

a command-line utility to cache curl results using local redis

Awesome Lists containing this project

README

        

# curl-with-redis-cache

node.js script to use local redis to cache curl results

## usage

```shell
# install dependencies
> npm i

# run the script
> node index.js
```

## alias

```shell
# ~/.zshrc
alias curl0="node /Users/.../curl-with-redis-cache/index.js"

# use alias
> curl0 https://jsonplaceholder.typicode.com/posts/1
```