https://github.com/anon767/p2pcache
p2p cache nodejs
https://github.com/anon767/p2pcache
browser cache distributed hash node nodejs p2p
Last synced: about 2 months ago
JSON representation
p2p cache nodejs
- Host: GitHub
- URL: https://github.com/anon767/p2pcache
- Owner: anon767
- Created: 2018-08-26T21:17:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T21:25:46.000Z (over 6 years ago)
- Last Synced: 2023-10-20T17:18:30.021Z (over 1 year ago)
- Topics: browser, cache, distributed, hash, node, nodejs, p2p
- Language: JavaScript
- Size: 1.58 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# P2PChatjs
A simple P2P Cache for Javascript (Browser and NodeJS)
Basically everyone who loads the script, is able to save and provide hashed Data to every other Peer.
This is called a distributed Cache.
## Usagerequire bundle.js and use it like:
```javascript
const p2pcache = require("./p2pcache");
p2pcache.save("key","value");
let fetch = p2pcache.get("key");```