Skip to content

emylincon/caching_chain

Repository files navigation

caching hash retrieval server

  • This application will server as a DNS for content based caching Network
  • Allows addition and reading of queries

Setup

  • run setup.py
sudo bash setup.sh

To Run content hash Server

gunicorn server:app

To Run web server

cd webserver
gunicorn web:app

Usage

  • add a new node | format -> add/location_id,content_id,url
curl http://127.0.0.1:5000/add/2,333,google.com
  • read content_id | format -> read/hash/location_id
curl http://127.0.0.1:5000/read/hash/2
  • read url | format -> read/url/content_id
curl http://127.0.0.1:5000/read/url/333

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published