{"id":15846421,"url":"https://github.com/rafalwilinski/cachr","last_synced_at":"2025-04-01T17:47:34.791Z","repository":{"id":72579150,"uuid":"73011683","full_name":"RafalWilinski/cachr","owner":"RafalWilinski","description":"📟 Simple HTTP Caching proxy in Clang","archived":false,"fork":false,"pushed_at":"2017-02-23T16:22:44.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T20:57:21.953Z","etag":null,"topics":["c","cache","clang","cmake","proxy","reverse-proxy"],"latest_commit_sha":null,"homepage":"rwilinski.me","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RafalWilinski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-06T18:52:42.000Z","updated_at":"2023-09-09T23:56:10.000Z","dependencies_parsed_at":"2023-05-10T19:30:44.970Z","dependency_job_id":null,"html_url":"https://github.com/RafalWilinski/cachr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fcachr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fcachr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fcachr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fcachr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RafalWilinski","download_url":"https://codeload.github.com/RafalWilinski/cachr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246684097,"owners_count":20817385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cache","clang","cmake","proxy","reverse-proxy"],"created_at":"2024-10-05T18:00:50.651Z","updated_at":"2025-04-01T17:47:34.766Z","avatar_url":"https://github.com/RafalWilinski.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Cachr [![Build Status](https://travis-ci.org/RafalWilinski/cachr.svg?branch=master)](https://travis-ci.org/RafalWilinski/cachr)\n\nSimple HTTP Caching proxy implementation in pure C.\n\n### Compiling\n```\ncmake .\nmake\n```\n\n### Running\n1. Edit `config.ini` file or create your own\n2. Run with `./cachr` command. You can optionally supply own config by passing it as argument to executable. E.g. `./cachr new_config.ini`\n\n### Using\nYou can test solution with following command:\n```bash\n./test/request.sh\n```\n\nor \n\n```bash\ncurl localhost:3001/one_second -w %{time_connect}:%{time_starttransfer}:%{time_total} \u0026 \ncurl localhost:3001/one_second -w %{time_connect}:%{time_starttransfer}:%{time_total} \u0026\n```\n\nFirst request response time should be considerably bigger than subsequent calls' response time.\n\n### Todo\n- [x] Add/implement stack (stack will indicate empty positions in `fds` array)\n- [x] Make requests to target\n- [x] Store request results in dictionary\n- [x] CRON-like mechanism for freeing memory in dicitonary\n- [x] Returning dict contents if possible\n- [x] Tests\n\n### License\n[MIT License](https://opensource.org/licenses/MIT) © Marcin Elantkowski, Rafał Wiliński\n\n### Libraries Used\n - [inih](https://github.com/benhoyt/inih)\n - [uthash](https://github.com/troydhanson/uthash)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalwilinski%2Fcachr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafalwilinski%2Fcachr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalwilinski%2Fcachr/lists"}