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 48
void
monitor(string $tag)
Start monitoring the given tag.
at line 56
void
stopMonitoring(string $tag)
Stop monitoring the given tag.
at line 64
void
add(string $id, array $tags)
Store the tags for the given job.
at line 76
void
addTemporary(int $minutes, string $id, array $tags)
Store the tags for the given job temporarily.
at line 90
int
count(string $tag)
Get the number of jobs matching a given tag.
at line 98
array
jobs(string $tag)
Get all of the job IDs for a given tag.
at line 106
array
paginate(string $tag, int $startingAt = 0, int $limit = 25)
Paginate the job IDs for a given tag.
at line 122
void
forgetJobs(array|string $tags, array|string $ids)
Remove the given job IDs from the given tag.
at line 136
void
forget(string $tag)
Delete the given tag from storage.
at line 144
protected RedisProxy
connection()
Get the Redis connection instance.