{"id":19839349,"url":"https://github.com/redislabs/rmnotify","last_synced_at":"2025-10-26T07:39:31.382Z","repository":{"id":80860303,"uuid":"82168368","full_name":"RedisLabs/rmnotify","owner":"RedisLabs","description":"A library for key and event space Notifications for Redis Modules","archived":false,"fork":false,"pushed_at":"2017-02-22T09:48:19.000Z","size":86,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-16T13:04:57.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisLabs.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":"2017-02-16T10:22:56.000Z","updated_at":"2019-01-10T00:57:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"94e701ed-efae-480e-b00d-35effb1e6a4c","html_url":"https://github.com/RedisLabs/rmnotify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RedisLabs/rmnotify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frmnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frmnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frmnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frmnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisLabs","download_url":"https://codeload.github.com/RedisLabs/rmnotify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frmnotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281074242,"owners_count":26439421,"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-10-26T02:00:06.575Z","response_time":61,"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":[],"created_at":"2024-11-12T12:21:56.745Z","updated_at":"2025-10-26T07:39:31.352Z","avatar_url":"https://github.com/RedisLabs.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rmnotify\n\nIn Redis it's possible to subscribe to Pub/Sub channels in order to receive events affecting the Redis data set in some way, see [docs](https://redis.io/topics/notifications).\n\nFor example, you might be interested in knowing about all operations touching a certain key (key space notification), or you might want to know if all keys have been deleted (event space notification).\n\nUnfortunately, the Redis modules [API](https://github.com/antirez/redis/blob/unstable/src/modules/API.md) has yet to support module registration for either key/event space notifications. Until native support is implemented you can use this library to register for both key and event space notifications.\n\n# Usage\nTo receive notifications for a specific key (\"foo\") call\n\n```sh\nvoid fnKeyNotify(const char* key, const char* event) {...}\nnotifierRegisterKey(notifier, \"foo\", fnKeyNotify);\n```\n\nAnd for event (\"del\") notifications:\n\n```sh\nvoid fnEventNotify(const char* event, const char* key) {...}\nnotifierRegisterEvent(notifier, \"del\", fnEventNotify);\n```\n\nSee either [demo.c](https://github.com/RedisLabs/rmnotify/src/demo.c) or [test.c](https://github.com/RedisLabs/rmnotify/src/test/test_notifications.c) for additional examples.\n\n# Build\nBuild dependencies, from rmnotify_root/deps/hiredis run:\n```sh\nmake\n```\nBuild rmnotify, from rmnotify_root/src run:\n```sh\nmake all\n```\nRun tests (make sure a local Redis server is running), from rmnotify_root/src/test run:\n```sh\nmake test \u0026\u0026 ./test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Frmnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredislabs%2Frmnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Frmnotify/lists"}