redis-flagger
JSON →A lightweight library for content flagging backed by Redis, with optional time-window support. Current stable version is 0.1.4. It allows flagging, unflagging, and checking if an element has been flagged, using Redis as the backend. Keys are built by JSON-encoding and SHA1-hashing the element, with configurable key prefix and TTL. Differentiators include simple API, support for any data type (objects, arrays, strings), and the ability to use an existing Redis connection or create a new one. Best suited for preventing duplicate processing, filtering streams, or as a distributed semaphore.
Resources
packageredis-flagger ↗