whatisgithub

What is rmnotify?

itamarhaber/rmnotify — explained in plain English

Analysis updated 2026-08-03 · repo last pushed 2017-02-17

CAudience · developerComplexity · 3/5DormantSetup · moderate

In one sentence

A helper library that lets developers writing custom Redis modules in C subscribe to keyspace notifications, so their code can react when data changes or gets deleted.

Mindmap

mindmap
  root((repo))
    What it does
      Subscribe to data alerts
      React to data changes
      React to deletions
    Tech stack
      C
      Hiredis
      Redis modules
    Use cases
      Sync data to databases
      Log data removals
      React to data changes
    Audience
      Redis module developers
      C programmers
    License
      Not specified in README

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a Redis module that syncs cached values to another database whenever data changes.

USE CASE 2

Create a module that logs whenever specific records are removed from Redis.

USE CASE 3

React instantly in a custom Redis module when a key is modified or deleted.

USE CASE 4

Monitor specific actions like delete across all keys in a Redis instance.

What is it built with?

CHiredisRedis Modules API

How does it compare?

itamarhaber/rmnotify0verflowme/radare2ac000/find-flv
LanguageCCC
Last pushed2017-02-172026-07-022013-04-05
MaintenanceDormantMaintainedDormant
Setup difficultymoderatemoderatemoderate
Complexity3/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires the hiredis library and familiarity with building Redis modules in C.

The README does not specify a license, so usage rights are unclear.

So what is it?

Redis is a popular data store, and it can automatically tell you when things happen, like when a specific piece of data changes or gets deleted. These alerts are called "keyspace" and "event space" notifications. However, if you're building a custom add-on (called a "module") for Redis, the official toolkit doesn't yet let your add-on listen for these alerts. rmnotify fills that gap. It's a helper library that lets custom Redis modules subscribe to these notifications in the meantime. At a high level, the library works by letting a developer register a specific piece of code to "listen" for certain events. For example, if you want to know whenever a specific piece of data (say, a key named "foo") is touched, you tell the library to watch "foo" and run your custom code whenever that happens. You can also do the reverse: listen for a specific action (like "delete") across any piece of data, and trigger your code whenever that action occurs anywhere in the system. This tool is built for developers who are writing custom Redis modules in the C programming language. A practical use case would be a developer building a module that needs to react instantly when data changes, perhaps syncing a cached value to another database, or logging whenever certain records are removed. Until Redis officially builds this listening capability into its core module system, this library serves as a temporary bridge. The project is written in C and relies on a supporting library called "hiredis" to function. The README doesn't go into detail on exactly how it intercepts notifications under the hood, but it provides the basic setup instructions and example files to help developers get started quickly.

Copy-paste prompts

Prompt 1
I'm building a custom Redis module in C and need to react when keys are modified or deleted. Show me how to use rmnotify to subscribe to keyspace notifications from inside my module.
Prompt 2
Help me set up rmnotify with hiredis so my Redis module can listen for delete events on any key and trigger a callback function.
Prompt 3
Write a C example using rmnotify that watches a specific Redis key named 'foo' and prints a message whenever that key is touched or deleted.
Prompt 4
Explain how to register a callback with rmnotify that fires whenever a delete action happens anywhere in Redis, and walk me through the setup steps.

Frequently asked questions

What is rmnotify?

A helper library that lets developers writing custom Redis modules in C subscribe to keyspace notifications, so their code can react when data changes or gets deleted.

What language is rmnotify written in?

Mainly C. The stack also includes C, Hiredis, Redis Modules API.

Is rmnotify actively maintained?

Dormant — no commits in 2+ years (last push 2017-02-17).

What license does rmnotify use?

The README does not specify a license, so usage rights are unclear.

How hard is rmnotify to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is rmnotify for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.