Debian Codegraph @

lib/3rdParty/composer/illuminate/support/Facades/Redis.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Support\Facades;
4
5 /**
6 * @method static \Illuminate\Redis\Connections\Connection connection(\UnitEnum|string|null $name = null)
7 * @method static \Illuminate\Redis\Connections\Connection resolve(string|null $name = null)
8 * @method static array connections()
9 * @method static void enableEvents()
10 * @method static void disableEvents()
11 * @method static void setDriver(string $driver)
12 * @method static void purge(string|null $name = null)
13 * @method static \Illuminate\Redis\RedisManager extend(string $driver, \Closure $callback)
14 * @method static void createSubscription(array|string $channels, \Closure $callback, string $method = 'subscribe')
15 * @method static \Illuminate\Redis\Limiters\ConcurrencyLimiterBuilder funnel(string $name)
16 * @method static \Illuminate\Redis\Limiters\DurationLimiterBuilder throttle(string $name)
17 * @method static mixed client()
18 * @method static void subscribe(array|string $channels, \Closure $callback)
19 * @method static void psubscribe(array|string $channels, \Closure $callback)
20 * @method static mixed command(string $method, array $parameters = [])
21 * @method static void listen(\Closure $callback)
22 * @method static void listenForFailures(\Closure $callback)
23 * @method static string|null getName()
24 * @method static \Illuminate\Redis\Connections\Connection setName(string $name)
25 * @method static \Illuminate\Contracts\Events\Dispatcher|null getEventDispatcher()
26 * @method static void setEventDispatcher(\Illuminate\Contracts\Events\Dispatcher $events)
27 * @method static void unsetEventDispatcher()
28 * @method static void macro(string $name, object|callable $macro)
29 * @method static void mixin(object $mixin, bool $replace = true)
30 * @method static bool hasMacro(string $name)
31 * @method static void flushMacros()
32 * @method static mixed macroCall(string $method, array $parameters)
33 * @method static string _compress(string $value)
34 * @method static string _uncompress(string $value)
35 * @method static string _prefix(string $key)
36 * @method static string _serialize(mixed $value)
37 * @method static mixed _unserialize(string $value)
38 * @method static string _pack(mixed $value)
39 * @method static mixed _unpack(string $value)
40 * @method static mixed acl(string $subcmd, string ...$args)
41 * @method static \Redis|int|false append(string $key, mixed $value)
42 * @method static \Redis|bool auth(mixed $credentials)
43 * @method static \Redis|bool bgSave()
44 * @method static \Redis|bool bgrewriteaof()
45 * @method static \Redis|array|false waitaof(int $numlocal, int $numreplicas, int $timeout)
46 * @method static \Redis|int|false bitcount(string $key, int $start = 0, int $end = -1, bool $bybit = false)
47 * @method static \Redis|int|false bitop(string $operation, string $deskey, string $srckey, string ...$other_keys)
48 * @method static \Redis|int|false bitpos(string $key, bool $bit, int $start = 0, int $end = -1, bool $bybit = false)
49 * @method static \Redis|array|false|null blPop(array|string $key_or_keys, string|int|float $timeout_or_key, mixed ...$extra_args)
50 * @method static \Redis|array|false|null brPop(array|string $key_or_keys, string|int|float $timeout_or_key, mixed ...$extra_args)
51 * @method static \Redis|string|false brpoplpush(string $src, string $dst, int|float $timeout)
52 * @method static \Redis|array|false bzPopMax(array|string $key, string|int $timeout_or_key, mixed ...$extra_args)
53 * @method static \Redis|array|false bzPopMin(array|string $key, string|int $timeout_or_key, mixed ...$extra_args)
54 * @method static \Redis|array|false|null bzmpop(float $timeout, array $keys, string $from, int $count = 1)
55 * @method static \Redis|array|false|null zmpop(array $keys, string $from, int $count = 1)
56 * @method static \Redis|array|false|null blmpop(float $timeout, array $keys, string $from, int $count = 1)
57 * @method static \Redis|array|false|null lmpop(array $keys, string $from, int $count = 1)
58 * @method static bool clearLastError()
59 * @method static bool close()
60 * @method static mixed config(string $operation, array|string|null $key_or_settings = null, string|null $value = null)
61 * @method static bool connect(string $host, int $port = 6379, float $timeout = 0, string|null $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0, array|null $context = null)
62 * @method static \Redis|bool copy(string $src, string $dst, array|null $options = null)
63 * @method static \Redis|int|false dbSize()
64 * @method static \Redis|string debug(string $key)
65 * @method static \Redis|int|false decr(string $key, int $by = 1)
66 * @method static \Redis|int|false decrBy(string $key, int $value)
67 * @method static \Redis|int|false del(array|string $key, string ...$other_keys)
68 * @method static \Redis|int|false delifeq(string $key, mixed $value)
69 * @method static \Redis|bool discard()
70 * @method static \Redis|string|false dump(string $key)
71 * @method static \Redis|string|false echo(string $str)
72 * @method static mixed eval(string $script, array $args = [], int $num_keys = 0)
73 * @method static mixed eval_ro(string $script_sha, array $args = [], int $num_keys = 0)
74 * @method static mixed evalsha(string $sha1, array $args = [], int $num_keys = 0)
75 * @method static mixed evalsha_ro(string $sha1, array $args = [], int $num_keys = 0)
76 * @method static \Redis|array|false exec()
77 * @method static \Redis|int|bool exists(mixed $key, mixed ...$other_keys)
78 * @method static \Redis|bool expire(string $key, int $timeout, string|null $mode = null)
79 * @method static \Redis|bool expireAt(string $key, int $timestamp, string|null $mode = null)
80 * @method static \Redis|bool failover(array|null $to = null, bool $abort = false, int $timeout = 0)
81 * @method static \Redis|int|false expiretime(string $key)
82 * @method static \Redis|int|false pexpiretime(string $key)
83 * @method static mixed fcall(string $fn, array $keys = [], array $args = [])
84 * @method static mixed fcall_ro(string $fn, array $keys = [], array $args = [])
85 * @method static \Redis|bool flushAll(bool|null $sync = null)
86 * @method static \Redis|bool flushDB(bool|null $sync = null)
87 * @method static \Redis|array|string|bool function(string $operation, mixed ...$args)
88 * @method static \Redis|int|false geoadd(string $key, float $lng, float $lat, string $member, mixed ...$other_triples_and_options)
89 * @method static \Redis|float|false geodist(string $key, string $src, string $dst, string|null $unit = null)
90 * @method static \Redis|array|false geohash(string $key, string $member, string ...$other_members)
91 * @method static \Redis|array|false geopos(string $key, string $member, string ...$other_members)
92 * @method static mixed georadius(string $key, float $lng, float $lat, float $radius, string $unit, array $options = [])
93 * @method static mixed georadius_ro(string $key, float $lng, float $lat, float $radius, string $unit, array $options = [])
94 * @method static mixed georadiusbymember(string $key, string $member, float $radius, string $unit, array $options = [])
95 * @method static mixed georadiusbymember_ro(string $key, string $member, float $radius, string $unit, array $options = [])
96 * @method static array geosearch(string $key, array|string $position, array|int|float $shape, string $unit, array $options = [])
97 * @method static \Redis|array|int|false geosearchstore(string $dst, string $src, array|string $position, array|int|float $shape, string $unit, array $options = [])
98 * @method static mixed get(string $key)
99 * @method static \Redis|array|false getWithMeta(string $key)
100 * @method static mixed getAuth()
101 * @method static \Redis|int|false getBit(string $key, int $idx)
102 * @method static \Redis|string|bool getEx(string $key, array $options = [])
103 * @method static int getDBNum()
104 * @method static \Redis|string|bool getDel(string $key)
105 * @method static string getHost()
106 * @method static string|null getLastError()
107 * @method static int getMode()
108 * @method static mixed getOption(int $option)
109 * @method static string|null getPersistentID()
110 * @method static int getPort()
111 * @method static string|false serverName()
112 * @method static string|false serverVersion()
113 * @method static \Redis|string|false getRange(string $key, int $start, int $end)
114 * @method static \Redis|array|string|int|false lcs(string $key1, string $key2, array|null $options = null)
115 * @method static float getReadTimeout()
116 * @method static \Redis|string|false getset(string $key, mixed $value)
117 * @method static float|false getTimeout()
118 * @method static array getTransferredBytes()
119 * @method static void clearTransferredBytes()
120 * @method static \Redis|int|false hDel(string $key, string $field, string ...$other_fields)
121 * @method static \Redis|bool hExists(string $key, string $field)
122 * @method static mixed hGet(string $key, string $member)
123 * @method static \Redis|array|false hGetAll(string $key)
124 * @method static mixed hGetWithMeta(string $key, string $member)
125 * @method static \Redis|int|false hIncrBy(string $key, string $field, int $value)
126 * @method static \Redis|float|false hIncrByFloat(string $key, string $field, float $value)
127 * @method static \Redis|array|false hKeys(string $key)
128 * @method static \Redis|int|false hLen(string $key)
129 * @method static \Redis|array|false hMget(string $key, array $fields)
130 * @method static \Redis|array|false hgetex(string $key, array $fields, array|string|null $expiry = null)
131 * @method static \Redis|int|false hsetex(string $key, array $fields, array|null $expiry = null)
132 * @method static \Redis|array|false hgetdel(string $key, array $fields)
133 * @method static \Redis|bool hMset(string $key, array $fieldvals)
134 * @method static \Redis|array|string|false hRandField(string $key, array|null $options = null)
135 * @method static \Redis|int|false hSet(string $key, mixed ...$fields_and_vals)
136 * @method static \Redis|bool hSetNx(string $key, string $field, mixed $value)
137 * @method static \Redis|int|false hStrLen(string $key, string $field)
138 * @method static \Redis|array|false hVals(string $key)
139 * @method static \Redis|array|false hexpire(string $key, int $ttl, array $fields, string|null $mode = null)
140 * @method static \Redis|array|false hpexpire(string $key, int $ttl, array $fields, string|null $mode = null)
141 * @method static \Redis|array|false hexpireat(string $key, int $time, array $fields, string|null $mode = null)
142 * @method static \Redis|array|false hpexpireat(string $key, int $mstime, array $fields, string|null $mode = null)
143 * @method static \Redis|array|false httl(string $key, array $fields)
144 * @method static \Redis|array|false hpttl(string $key, array $fields)
145 * @method static \Redis|array|false hexpiretime(string $key, array $fields)
146 * @method static \Redis|array|false hpexpiretime(string $key, array $fields)
147 * @method static \Redis|array|false hpersist(string $key, array $fields)
148 * @method static \Redis|array|bool hscan(string $key, string|int|null $iterator, string|null $pattern = null, int $count = 0)
149 * @method static \Redis|int|false expiremember(string $key, string $field, int $ttl, string|null $unit = null)
150 * @method static \Redis|int|false expirememberat(string $key, string $field, int $timestamp)
151 * @method static \Redis|int|false incr(string $key, int $by = 1)
152 * @method static \Redis|int|false incrBy(string $key, int $value)
153 * @method static \Redis|float|false incrByFloat(string $key, float $value)
154 * @method static \Redis|array|false info(string ...$sections)
155 * @method static bool isConnected()
156 * @method static void keys(string $pattern)
157 * @method static void lInsert(string $key, string $pos, mixed $pivot, mixed $value)
158 * @method static \Redis|int|false lLen(string $key)
159 * @method static \Redis|string|false lMove(string $src, string $dst, string $wherefrom, string $whereto)
160 * @method static \Redis|string|false blmove(string $src, string $dst, string $wherefrom, string $whereto, float $timeout)
161 * @method static \Redis|array|string|bool lPop(string $key, int $count = 0)
162 * @method static \Redis|array|int|bool|null lPos(string $key, mixed $value, array|null $options = null)
163 * @method static \Redis|int|false lPush(string $key, mixed ...$elements)
164 * @method static \Redis|int|false rPush(string $key, mixed ...$elements)
165 * @method static \Redis|int|false lPushx(string $key, mixed $value)
166 * @method static \Redis|int|false rPushx(string $key, mixed $value)
167 * @method static \Redis|bool lSet(string $key, int $index, mixed $value)
168 * @method static int lastSave()
169 * @method static mixed lindex(string $key, int $index)
170 * @method static \Redis|array|false lrange(string $key, int $start, int $end)
171 * @method static \Redis|int|false lrem(string $key, mixed $value, int $count = 0)
172 * @method static \Redis|bool ltrim(string $key, int $start, int $end)
173 * @method static \Redis|array|false mget(array $keys)
174 * @method static \Redis|bool migrate(string $host, int $port, array|string $key, int $dstdb, int $timeout, bool $copy = false, bool $replace = false, mixed $credentials = null)
175 * @method static \Redis|bool move(string $key, int $index)
176 * @method static \Redis|bool mset(array $key_values)
177 * @method static \Redis|bool msetnx(array $key_values)
178 * @method static \Redis|bool multi(int $value = 1)
179 * @method static \Redis|string|int|false object(string $subcommand, string $key)
180 * @method static bool pconnect(string $host, int $port = 6379, float $timeout = 0, string|null $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0, array|null $context = null)
181 * @method static \Redis|bool persist(string $key)
182 * @method static bool pexpire(string $key, int $timeout, string|null $mode = null)
183 * @method static \Redis|bool pexpireAt(string $key, int $timestamp, string|null $mode = null)
184 * @method static \Redis|int pfadd(string $key, array $elements)
185 * @method static \Redis|int|false pfcount(array|string $key_or_keys)
186 * @method static \Redis|bool pfmerge(string $dst, array $srckeys)
187 * @method static \Redis|string|bool ping(string|null $message = null)
188 * @method static \Redis|bool pipeline()
189 * @method static \Redis|bool psetex(string $key, int $expire, mixed $value)
190 * @method static \Redis|int|false pttl(string $key)
191 * @method static \Redis|int|false publish(string $channel, string $message)
192 * @method static mixed pubsub(string $command, mixed $arg = null)
193 * @method static \Redis|array|bool punsubscribe(array $patterns)
194 * @method static \Redis|array|string|bool rPop(string $key, int $count = 0)
195 * @method static \Redis|string|false randomKey()
196 * @method static mixed rawcommand(string $command, mixed ...$args)
197 * @method static \Redis|bool rename(string $old_name, string $new_name)
198 * @method static \Redis|bool renameNx(string $key_src, string $key_dst)
199 * @method static \Redis|bool reset()
200 * @method static \Redis|bool restore(string $key, int $ttl, string $value, array|null $options = null)
201 * @method static mixed role()
202 * @method static \Redis|string|false rpoplpush(string $srckey, string $dstkey)
203 * @method static \Redis|int|false sAdd(string $key, mixed $value, mixed ...$other_values)
204 * @method static int sAddArray(string $key, array $values)
205 * @method static \Redis|array|false sDiff(string $key, string ...$other_keys)
206 * @method static \Redis|int|false sDiffStore(string $dst, string $key, string ...$other_keys)
207 * @method static \Redis|array|false sInter(array|string $key, string ...$other_keys)
208 * @method static \Redis|int|false sintercard(array $keys, int $limit = -1)
209 * @method static \Redis|int|false sInterStore(array|string $key, string ...$other_keys)
210 * @method static \Redis|array|false sMembers(string $key)
211 * @method static \Redis|array|false sMisMember(string $key, string $member, string ...$other_members)
212 * @method static \Redis|bool sMove(string $src, string $dst, mixed $value)
213 * @method static \Redis|array|string|false sPop(string $key, int $count = 0)
214 * @method static mixed sRandMember(string $key, int $count = 0)
215 * @method static \Redis|array|false sUnion(string $key, string ...$other_keys)
216 * @method static \Redis|int|false sUnionStore(string $dst, string $key, string ...$other_keys)
217 * @method static \Redis|bool save()
218 * @method static array|false scan(string|int|null $iterator, string|null $pattern = null, int $count = 0, string|null $type = null)
219 * @method static \Redis|int|false scard(string $key)
220 * @method static mixed script(string $command, mixed ...$args)
221 * @method static \Redis|bool select(int $db)
222 * @method static \Redis|string|bool set(string $key, mixed $value, mixed $options = null)
223 * @method static \Redis|int|false setBit(string $key, int $idx, bool $value)
224 * @method static \Redis|int|false setRange(string $key, int $index, string $value)
225 * @method static bool setOption(int $option, mixed $value)
226 * @method static void setex(string $key, int $expire, mixed $value)
227 * @method static \Redis|bool setnx(string $key, mixed $value)
228 * @method static \Redis|bool sismember(string $key, mixed $value)
229 * @method static \Redis|bool replicaof(string|null $host = null, int $port = 6379)
230 * @method static \Redis|int|false touch(array|string $key_or_array, string ...$more_keys)
231 * @method static mixed slowlog(string $operation, int $length = 0)
232 * @method static mixed sort(string $key, array|null $options = null)
233 * @method static mixed sort_ro(string $key, array|null $options = null)
234 * @method static \Redis|int|false srem(string $key, mixed $value, mixed ...$other_values)
235 * @method static array|false sscan(string $key, string|int|null $iterator, string|null $pattern = null, int $count = 0)
236 * @method static bool ssubscribe(array $channels, callable $cb)
237 * @method static \Redis|int|false strlen(string $key)
238 * @method static \Redis|array|bool sunsubscribe(array $channels)
239 * @method static \Redis|bool swapdb(int $src, int $dst)
240 * @method static \Redis|array time()
241 * @method static \Redis|int|false ttl(string $key)
242 * @method static \Redis|int|false type(string $key)
243 * @method static \Redis|int|false unlink(array|string $key, string ...$other_keys)
244 * @method static \Redis|array|bool unsubscribe(array $channels)
245 * @method static \Redis|bool unwatch()
246 * @method static \Redis|bool watch(array|string $key, string ...$other_keys)
247 * @method static int|false wait(int $numreplicas, int $timeout)
248 * @method static int|false xack(string $key, string $group, array $ids)
249 * @method static \Redis|string|false xadd(string $key, string $id, array $values, int $maxlen = 0, bool $approx = false, bool $nomkstream = false)
250 * @method static \Redis|array|bool xautoclaim(string $key, string $group, string $consumer, int $min_idle, string $start, int $count = -1, bool $justid = false)
251 * @method static \Redis|array|bool xclaim(string $key, string $group, string $consumer, int $min_idle, array $ids, array $options)
252 * @method static \Redis|int|false xdel(string $key, array $ids)
253 * @method static mixed xgroup(string $operation, string|null $key = null, string|null $group = null, string|null $id_or_consumer = null, bool $mkstream = false, int $entries_read = -2)
254 * @method static mixed xinfo(string $operation, string|null $arg1 = null, string|null $arg2 = null, int $count = -1)
255 * @method static \Redis|int|false xlen(string $key)
256 * @method static \Redis|array|false xpending(string $key, string $group, string|null $start = null, string|null $end = null, int $count = -1, string|null $consumer = null)
257 * @method static \Redis|array|bool xrange(string $key, string $start, string $end, int $count = -1)
258 * @method static \Redis|array|bool xread(array $streams, int $count = -1, int $block = -1)
259 * @method static \Redis|array|bool xreadgroup(string $group, string $consumer, array $streams, int $count = 1, int $block = 1)
260 * @method static \Redis|array|bool xrevrange(string $key, string $end, string $start, int $count = -1)
261 * @method static \Redis|int|false vadd(string $key, array $values, mixed $element, array|null $options = null)
262 * @method static \Redis|array|false vsim(string $key, mixed $member, array|null $options = null)
263 * @method static \Redis|int|false vcard(string $key)
264 * @method static \Redis|int|false vdim(string $key)
265 * @method static \Redis|array|false vinfo(string $key)
266 * @method static \Redis|bool vismember(string $key, mixed $member)
267 * @method static \Redis|array|false vemb(string $key, mixed $member, bool $raw = false)
268 * @method static \Redis|array|string|false vrandmember(string $key, int $count = 0)
269 * @method static \Redis|array|false vrange(string $key, string $min, string $max, int $count = -1)
270 * @method static \Redis|int|false vrem(string $key, mixed $member)
271 * @method static \Redis|int|false vsetattr(string $key, mixed $member, array|string $attributes)
272 * @method static \Redis|array|string|false vgetattr(string $key, mixed $member, bool $decode = true)
273 * @method static \Redis|array|false vlinks(string $key, mixed $member, bool $withscores = false)
274 * @method static \Redis|int|false xtrim(string $key, string $threshold, bool $approx = false, bool $minid = false, int $limit = -1)
275 * @method static \Redis|int|float|false zAdd(string $key, array|float $score_or_options, mixed ...$more_scores_and_mems)
276 * @method static \Redis|int|false zCard(string $key)
277 * @method static \Redis|int|false zCount(string $key, string|int $start, string|int $end)
278 * @method static \Redis|float|false zIncrBy(string $key, float $value, mixed $member)
279 * @method static \Redis|int|false zLexCount(string $key, string $min, string $max)
280 * @method static \Redis|array|false zMscore(string $key, mixed $member, mixed ...$other_members)
281 * @method static \Redis|array|false zPopMax(string $key, int|null $count = null)
282 * @method static \Redis|array|false zPopMin(string $key, int|null $count = null)
283 * @method static \Redis|array|false zRange(string $key, string|int $start, string|int $end, array|bool|null $options = null)
284 * @method static \Redis|array|false zRangeByLex(string $key, string $min, string $max, int $offset = -1, int $count = -1)
285 * @method static \Redis|array|false zRangeByScore(string $key, string $start, string $end, array $options = [])
286 * @method static \Redis|int|false zrangestore(string $dstkey, string $srckey, string $start, string $end, array|bool|null $options = null)
287 * @method static \Redis|array|string zRandMember(string $key, array|null $options = null)
288 * @method static \Redis|int|false zRank(string $key, mixed $member)
289 * @method static \Redis|int|false zRem(mixed $key, mixed $member, mixed ...$other_members)
290 * @method static \Redis|int|false zRemRangeByLex(string $key, string $min, string $max)
291 * @method static \Redis|int|false zRemRangeByRank(string $key, int $start, int $end)
292 * @method static \Redis|int|false zRemRangeByScore(string $key, string $start, string $end)
293 * @method static \Redis|array|false zRevRange(string $key, int $start, int $end, mixed $scores = null)
294 * @method static \Redis|array|false zRevRangeByLex(string $key, string $max, string $min, int $offset = -1, int $count = -1)
295 * @method static \Redis|array|false zRevRangeByScore(string $key, string $max, string $min, array|bool $options = [])
296 * @method static \Redis|int|false zRevRank(string $key, mixed $member)
297 * @method static \Redis|float|false zScore(string $key, mixed $member)
298 * @method static \Redis|array|false zdiff(array $keys, array|null $options = null)
299 * @method static \Redis|int|false zdiffstore(string $dst, array $keys)
300 * @method static \Redis|array|false zinter(array $keys, array|null $weights = null, array|null $options = null)
301 * @method static \Redis|int|false zintercard(array $keys, int $limit = -1)
302 * @method static \Redis|int|false zinterstore(string $dst, array $keys, array|null $weights = null, string|null $aggregate = null)
303 * @method static \Redis|array|false zscan(string $key, string|int|null $iterator, string|null $pattern = null, int $count = 0)
304 * @method static \Redis|array|false zunion(array $keys, array|null $weights = null, array|null $options = null)
305 * @method static \Redis|int|false zunionstore(string $dst, array $keys, array|null $weights = null, string|null $aggregate = null)
306 *
307 * @see \Illuminate\Redis\RedisManager
308 */
309 class Redis extends Facade
310 {
311 /**
312 * Get the registered name of the component.
313 *
314 * @return string
315 */
316 protected static function getFacadeAccessor()
317 {
318 return 'redis';
319 }
320 }