Socket
Socket
Sign inDemoInstall

cachifyrest

Package Overview
Dependencies
86
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cachifyrest

Cache server for rest-full apis


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
3.90 MB
Created
Weekly downloads
 

Readme

Source

Cachifyrest

Front-end developers who they working on spa clients need fast rest-full apis. but problem will come when they working in large company and the api is too slow because of server is not a live for 24h/day or other reseans .

Cachifyrest let us to cache every requests from mother-server, so Hooray we can develop front with more power !

Features

  • Set port, timeout, cacheMaxAge in cli .

Technology

Cachifyrest is built with the expressjs 4 framework. We're using Axios as a fetch function.

Requirements

You need Nodejs >=1.5.x .

Installation

yarn global add cachifyrest
# OR
npm i -g cachifyrest

Running the Cache Server

cachifyrest -timeout 5000 -cache 900000 -port 3110
# OR
cachifyrest -t 5000 -c 900000

You will see sth like this :


 ██████╗ █████╗  ██████╗██╗  ██╗██╗███████╗██╗   ██╗██████╗ ███████╗███████╗████████╗
██╔════╝██╔══██╗██╔════╝██║  ██║██║██╔════╝╚██╗ ██╔╝██╔══██╗██╔════╝██╔════╝╚══██╔══╝
██║     ███████║██║     ███████║██║█████╗   ╚████╔╝ ██████╔╝█████╗  ███████╗   ██║   
██║     ██╔══██║██║     ██╔══██║██║██╔══╝    ╚██╔╝  ██╔══██╗██╔══╝  ╚════██║   ██║ v1.0.5
╚██████╗██║  ██║╚██████╗██║  ██║██║██║        ██║   ██║  ██║███████╗███████║   ██║ FanapSoft
 ╚═════╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝   ╚═╝  ╚═╝╚══════╝╚══════╝   ╚═╝ 
                                                                                     
Cache server listening on port 3110 !
─────────────────────────────────────
- Request Timeout   : 30000ms / 0:30 m:s
- Cache MaxAge      : 900000ms / 15:00 m:s
- Server Port       : 3110
- Server Addresses  :
  local     localhost    
  local     127.0.0.1    
  enp6s0    192.168.1.106
  wlp2s0    192.168.1.108
  docker0   172.17.0.1   
  tun0      10.10.194.164
─────────────────────────────────────
- Resources 
  MemoryUsage : rss       41.44 MB
                heapTotal 15.33 MB
                heapUsed  12.7 MB
                external  0.02 MB
─────────────────────────────────────

Have a question?

Any issues or questions (no matter how basic), open an issue. Please take the initiative to read relevant documentation and be pro-active with debugging.

Want to contribute?

Contributions are welcome. If you're changing something non-trivial, you may want to submit an issue before creating a large pull request.

License

MIT

FAQs

Last updated on 02 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc