{"id":15501373,"url":"https://github.com/fgm/drupal_redis_stats","last_synced_at":"2025-04-06T19:25:53.875Z","repository":{"id":51103556,"uuid":"248536624","full_name":"fgm/drupal_redis_stats","owner":"fgm","description":"Report on Drupal 11 / Drupal 10 / Drupal 9 cache bins stored in Redis","archived":false,"fork":false,"pushed_at":"2024-02-27T09:09:25.000Z","size":109,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T01:32:20.612Z","etag":null,"topics":["drupal-10","drupal-11","drupal-9","monitoring","observability","redis-server"],"latest_commit_sha":null,"homepage":"https://www.drupal.org/project/redis","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fgm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-03-19T15:22:15.000Z","updated_at":"2025-01-22T17:53:02.000Z","dependencies_parsed_at":"2024-01-16T15:21:16.756Z","dependency_job_id":"485b0798-00b2-4cb9-9f70-dcd31e31e1b7","html_url":"https://github.com/fgm/drupal_redis_stats","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Fdrupal_redis_stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Fdrupal_redis_stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Fdrupal_redis_stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgm%2Fdrupal_redis_stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgm","download_url":"https://codeload.github.com/fgm/drupal_redis_stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247537307,"owners_count":20954926,"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":["drupal-10","drupal-11","drupal-9","monitoring","observability","redis-server"],"created_at":"2024-10-02T09:04:09.293Z","updated_at":"2025-04-06T19:25:53.852Z","avatar_url":"https://github.com/fgm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Drupal Redis Stats\n==================\n\n[![GoDoc](https://godoc.org/github.com/fgm/drupal_redis_stats?status.svg)](https://godoc.org/github.com/fgm/drupal_redis_stats)\n[![Go Report Card](https://goreportcard.com/badge/github.com/fgm/drupal_redis_stats)](https://goreportcard.com/report/github.com/fgm/drupal_redis_stats)\n[![Build Status](https://travis-ci.org/fgm/drupal_redis_stats.svg?branch=master)](https://travis-ci.org/fgm/drupal_redis_stats)\n[![codecov](https://codecov.io/gh/fgm/drupal_redis_stats/branch/main/graph/badge.svg?token=QR0XKBK3DF)](https://codecov.io/gh/fgm/drupal_redis_stats)\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/fgm/drupal_redis_stats/badge)](https://securityscorecards.dev/viewer/?uri=github.com/fgm/drupal_redis_stats)\n[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B11916%2Fgithub.com%2Ffgm%2Fdrupal_redis_stats.svg?type=shield)](https://app.fossa.com/projects/custom%2B11916%2Fgithub.com%2Ffgm%2Fdrupal_redis_stats?ref=badge_shield)\n\nThis command provides a summary of the use of a Redis database by the \nDrupal 10 or Drupal 9 cache provider.\n\nIt relies on Redis `SCAN` operator instead of `KEYS`, so it won't block your\nsite when used on production.\n\n\n## Installing\n\nAssuming Go 1.21 or later installed:\n\n```\ngo get -u github.com/fgm/drupal_redis_stats\n```\n\n\n## Using\n### Flags\n\n- `-h` provides help\n- `-dsn` flag allows using a non-default Redis\n  - `-dsn redis://\u003chost\u003e:\u003cport\u003e/\u003cdb\u003e` without authentication\n  - `-dsn redis://\u003cpassword\u003e@\u003chost\u003e:\u003cport\u003e/\u003cdb\u003e` for `requirepass` AUTH mode\n  - `-dsn redis://\u003cuser\u003e:\u003cpassword\u003e@\u003chost\u003e:\u003cport\u003e/\u003cdb\u003e` for ACL AUTH mode\n- `-json` provides JSON output instead of the default human-readable format\n- `-q` disables the progress bar used during the database SCAN loop\n\n\n### Sample results\n\n```\nBin                | Entries |     Size\n-------------------+---------+---------\nbootstrap          |      10 |     6056\nconfig             |    7992 |  4741812\ndata               |   10483 |  7717813\ndefault            |     183 |   130061\ndiscovery          |     240 |   164028\ndynamic_page_cache |    6104 | 11225548\nentity             |     785 |   506817\nmenu               |      28 |    30646\npage               |    6125 |  5222326\nrender             |   12877 | 19965812\n-------------------+---------+---------\nTotal              |   44832 | 49714857\n```\n\nThe _Entries_ column provides the number of entries in a cache bin,\nwhile the _Size_ bin provides the size used by keys and data in Redis\nstorage, based on information provided by the `MEMORY USAGE` command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgm%2Fdrupal_redis_stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgm%2Fdrupal_redis_stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgm%2Fdrupal_redis_stats/lists"}