{"id":22599583,"url":"https://github.com/azuregreen/cache_simulator","last_synced_at":"2025-08-02T07:35:05.168Z","repository":{"id":113451953,"uuid":"234862046","full_name":"AzureGreen/cache_simulator","owner":"AzureGreen","description":"A C++11 Based CDN cache simulator","archived":false,"fork":false,"pushed_at":"2020-04-13T09:27:14.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T19:50:05.413Z","etag":null,"topics":["c-plus-plus-11","cache-policy","cache-simulation","cdn-cache"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AzureGreen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-01-19T07:57:01.000Z","updated_at":"2025-01-07T06:03:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"b716121c-961b-41c2-9930-6bf3f1082e03","html_url":"https://github.com/AzureGreen/cache_simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AzureGreen/cache_simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureGreen%2Fcache_simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureGreen%2Fcache_simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureGreen%2Fcache_simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureGreen%2Fcache_simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AzureGreen","download_url":"https://codeload.github.com/AzureGreen/cache_simulator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzureGreen%2Fcache_simulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268348670,"owners_count":24236299,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-plus-plus-11","cache-policy","cache-simulation","cdn-cache"],"created_at":"2024-12-08T11:10:23.802Z","updated_at":"2025-08-02T07:35:05.157Z","avatar_url":"https://github.com/AzureGreen.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDN Cache Simulator\n\n### Introduction\n\nThis project is the **cache simulation** part of the CDN cache offline analysis. \n\nThis CDN cache has a chunk storage feature that all files larger than 1 MB are split into multiple chunks at a granularity of 1 MB and parts smaller than 1 MB are divided at 32 KB. Each chunk is treated as a separate file. Therefore, this requirement was also followed when implementing this simulator.\n\nThe core part of this simulator contains the implementation of various common cache replacement algorithms, such as : `FIFO`, `LRU`, `2Q`, `MQ`, `SLRU`, `ARC`, `LIRS`, `Belady`, etc.\n\n### Dependencies\n\nCompiler: GCC 4.8.5+\n\nBuild System: CMake 3.9+\n\nThird party libraries: Boost-static, (gflags, glog if not build `libreplace.so`, it is not necessary)\n\n### Build\n\nGenerate makefile:\n\n```shell\ncd src \u0026\u0026 mkdir build \u0026\u0026 cd build \u0026\u0026 cmake -DCMAKE_BUILD_TYPE=Release ..\n```\n\nBuild:\n\n```shell\nmake\n```\n\n### Usage\n\nBecause this is a custom simulation system, if you need to use it, you can change the part of the cache replacement algorithm get method and insert method to handle the file size according to your needs. This project only involves chunks with a size of 1 MB and chunks of 32 KB or less.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazuregreen%2Fcache_simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazuregreen%2Fcache_simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazuregreen%2Fcache_simulator/lists"}