{"id":22945498,"url":"https://github.com/dafox/htcache","last_synced_at":"2025-04-01T21:44:52.419Z","repository":{"id":189082111,"uuid":"609992331","full_name":"DaFox/htcache","owner":"DaFox","description":"Simple and fast cache service with HTTP interface","archived":false,"fork":false,"pushed_at":"2023-03-05T21:18:17.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T14:28:27.186Z","etag":null,"topics":["clap-rs","rust","rust-lang","warp-rs"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/DaFox.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}},"created_at":"2023-03-05T20:41:45.000Z","updated_at":"2023-03-05T20:45:59.000Z","dependencies_parsed_at":"2023-08-18T07:39:16.293Z","dependency_job_id":null,"html_url":"https://github.com/DaFox/htcache","commit_stats":null,"previous_names":["dafox/htcache"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaFox%2Fhtcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaFox%2Fhtcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaFox%2Fhtcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaFox%2Fhtcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaFox","download_url":"https://codeload.github.com/DaFox/htcache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246717058,"owners_count":20822557,"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":["clap-rs","rust","rust-lang","warp-rs"],"created_at":"2024-12-14T14:33:14.933Z","updated_at":"2025-04-01T21:44:52.394Z","avatar_url":"https://github.com/DaFox.png","language":"Rust","readme":"# HTCache - Simple and fast cache with HTTP interface\n\n[![Rust](https://github.com/DaFox/htcache/actions/workflows/rust.yml/badge.svg)](https://github.com/DaFox/htcache/actions/workflows/rust.yml)\n\n## Starting the service\n\n```sh\nhtcache -a 0.0.0.0 -p 9000\n```\n\n## Usage\n\n### Write data to the cache\n\n```\nPUT /\u003ccache-key\u003e\nContent-Type: \u003ccontent-type\u003e\nX-TTL: \u003cttl\u003e\n```\n\n```sh\ncurl -XPUT http://localhost:3030/test --header \"Content-Type: text/plain\" --header \"X-TTL: 120\" --data-binary=\"hello world\"\n```\n\n### Read data from the cache\n\n```\nGET /\u003ccache-key\u003e\n```\n\n```sh\ncurl -XGET http://localhost:3030/test\n```\n\n## About this demo\n\nThis demo application uses the following techniques and libraries:\n\n * \"Warp\" for creating an lightweight HTTP server with REST interface\n * \"Clap\" for creating a nice command line interface\n * \"Tokio\" to run the garbage collector asynchronous\n * \"Serde\" and \"Serde JSON\" to serialize and deserialize the cache\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdafox%2Fhtcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdafox%2Fhtcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdafox%2Fhtcache/lists"}