RedisTagRepository
class RedisTagRepository implements TagRepository
Traits
Methods
Execute commands in a pipeline, falling back to a transaction.
Get the currently monitored tags.
Return the tags which are being monitored.
Start monitoring the given tag.
Stop monitoring the given tag.
Store the tags for the given job.
Store the tags for the given job temporarily.
Get the number of jobs matching a given tag.
Get all of the job IDs for a given tag.
Paginate the job IDs for a given tag.
Remove the given job IDs from the given tag.
Delete the given tag from storage.
Get the Redis connection instance.
Details
in
UsesClusterAwarePipeline at line 12
protected array
pipeline(callable $callback)
Execute commands in a pipeline, falling back to a transaction.
at line 20
__construct(Factory $redis)
Create a new repository instance.
at line 28
array
monitoring()
Get the currently monitored tags.
at line 36
array
monitored(array $tags)
Return the tags which are being monitored.
at line 44
void
monitor(string $tag)
Start monitoring the given tag.
at line 52
void
stopMonitoring(string $tag)
Stop monitoring the given tag.
at line 60
void
add(string $id, array $tags)
Store the tags for the given job.
at line 72
void
addTemporary(int $minutes, string $id, array $tags)
Store the tags for the given job temporarily.
at line 86
int
count(string $tag)
Get the number of jobs matching a given tag.
at line 94
array
jobs(string $tag)
Get all of the job IDs for a given tag.
at line 102
array
paginate(string $tag, int $startingAt = 0, int $limit = 25)
Paginate the job IDs for a given tag.
at line 118
void
forgetJobs(array|string $tags, array|string $ids)
Remove the given job IDs from the given tag.
at line 132
void
forget(string $tag)
Delete the given tag from storage.
at line 140
protected RedisProxy
connection()
Get the Redis connection instance.