Comments (6)
No, cache controlling is not implemented yet.
But you can try my similar project (only json output, http api is described here), which can handle cache.
from peerstohttp.
Thanks for your reply sir, are there any documents about WinPooh32/content? Have you done performance testing for either of them? Wish you can adding the cache cleaning to peerstohttp.
from peerstohttp.
openapi.yaml is api specification :)
You can render docs using it. Copy&paste it's content to https://editor.swagger.io/
Or generate client's code using https://openapi-generator.tech/
Settings api is not implemented yet.
Performance is same as for peerstohttp. Also same commands for compiling, but only from /cmd/service directory.
Yep, I am going to add cache to peerstohttp.
from peerstohttp.
Thank you for your great work sir, I'm trying more.
from peerstohttp.
I have been added -cache-capacity
option, by default it's limited to 10 GiB.
Can be set to -1
for disabling cache capacity size limit.
from peerstohttp.
you could use bash script
nano /usr/bin/remove.sh
chmod u+x /usr/bin/remove.sh
#!/bin/bash
find /tmp/ -maxdepth 1 -cmin +120 -name "*" -exec /bin/rm -f {} \;
crontab -e
use nano editor
*/45 * * * * /usr/bin/remove.sh
this will automatically start /usr/bin/remove.sh every 45 minutes and the bash script will check which files are older than 120 minutes and delete them.
just another way to remove tmp files
from peerstohttp.
Related Issues (16)
- html5 video tag HOT 1
- 3 more concurrent downloads cause problems HOT 2
- cpu load almost 100% all the time HOT 12
- dies randomly HOT 4
- SQLite3 dependency fails to build for GOOS=windows GOARCH=386
- Feature request: "print version" command line switch.
- Add Heroku Deploy Button HOT 2
- Feature request: understand special file names for torrents (eg. 'largest') in request path
- Feature request: expose default added trackers or allow disabling them HOT 1
- Feature request: Append configurable fixed string to added magnet URIs (e.g. trackers) HOT 2
- magnet URL issue ? HOT 1
- is there a way to include Let's Encrypt certificate while streaming HOT 3
- TOR/Proxy Support? HOT 1
- "no Go files in" error HOT 6
- Publish Docker image HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peerstohttp.