Reads and writes the queue to a redis db
Reads and writes the queue to a redis db
new()
Creates a redis source object.
RedisSource$new(id = redisIdGenerator()(), config = redisConfig())
id
An identifier to use for the queue
config
A configuration list for redux::hiredis
getRedisConnection()
Returns the underlying redis connection.
RedisSource$getRedisConnection()
pop()
removes n items from the source and returns them
RedisSource$pop(n = -1)
n
The number of records to pop (-1 indicates all available).
push()
Adds an item to the source.
RedisSource$push(msg, obj)
msg
A string indicating the signal.
obj
The object to associate with the signal.
destroy()
Cleans up source after use.
RedisSource$destroy()
finalize()
finalize
RedisSource$finalize()
clone()
The objects of this class are cloneable with this method.
RedisSource$clone(deep = FALSE)
deep
Whether to make a deep clone.