ProductOpener::Redis - functions to push information to redis
ProductOpener::Redis
is handling pushing info to Redis to communicate updates to all services,
including search-a-licious.
The connection to redis
init $redis_client or re-init it if we where disconnected
it is uses ProductOpener::Config2::redis_url
Add an event to Redis stream to inform that a product was updated.
The user that updated the product.
The product that was updated.
The action that was performed on the product (either "updated" or "deleted"). A product creation is considered as an update.
The user comment associated with the update.
a hashref of the differences between the previous and new revision of the product.
Return the number of requests performed by the given user for the current minute for the given rate-limit bucket. See https://redis.com/glossary/rate-limiting/ for more information.
If the rate-limiter is not configured or if an error occurs, returns undef.
The IP address of the user who is making the request.
The rate-limit bucket that is being requested.
Increment the number of requests according to the Redis rate-limiter for the current minute for the given user and bucket. The expiration of the counter is set to 59 seconds. See https://redis.com/glossary/rate-limiting/ for more information.
The IP address of the user who is making the request.
The rate-limit bucket that is being requested.