{"id":13507175,"url":"https://github.com/camshaft/count_buffer","last_synced_at":"2025-04-04T00:41:47.643Z","repository":{"id":57485999,"uuid":"37178804","full_name":"camshaft/count_buffer","owner":"camshaft","description":"buffer a large set of counters and flush periodically","archived":false,"fork":false,"pushed_at":"2015-12-08T02:13:21.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T14:16:55.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/camshaft.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}},"created_at":"2015-06-10T06:09:52.000Z","updated_at":"2017-05-10T16:45:47.000Z","dependencies_parsed_at":"2022-09-18T18:15:50.513Z","dependency_job_id":null,"html_url":"https://github.com/camshaft/count_buffer","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/camshaft%2Fcount_buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camshaft%2Fcount_buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camshaft%2Fcount_buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camshaft%2Fcount_buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camshaft","download_url":"https://codeload.github.com/camshaft/count_buffer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247103303,"owners_count":20884023,"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":[],"created_at":"2024-08-01T02:00:26.030Z","updated_at":"2025-04-04T00:41:47.612Z","avatar_url":"https://github.com/camshaft.png","language":"Elixir","funding_links":[],"categories":["Algorithms and Data structures"],"sub_categories":[],"readme":"count_buffer\n===========\n\nbuffer a large set of counters and flush periodically.\n\n## api\n\n```elixir\nname = :my_counters\nsize = 128\nflush = fn(bucket, key, count) -\u003e\n  ## persist your counts here\nend\nCountBuffer.start(name, size, flush)\n\nbucket = \"page_views\"\nkey = \"index.html\"\n\nCountBuffer.increment(name, bucket, key)\nCountBuffer.increment(name, bucket, key, 10)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamshaft%2Fcount_buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamshaft%2Fcount_buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamshaft%2Fcount_buffer/lists"}