Redis/Commands.pm

filter: Statementstmt 1.7% 9 / 525 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.7% 2 / 260 Podpod 100% 258 / 258 totaltotal 25.7% 269 / 1043 CC 1 SCAR 6.9
CC
1
Cov
2%
cluster_addslots
2.0
cluster_bumpepoch
2.0
cluster_count_failure_reports
2.0
CRAP 2.0
« job-queue.pl ↑ Summary Redis/Server.pm »
1 package Net::Async::Redis::Commands;
2  
3 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 12 our $VERSION = '2.004_001'; # TRIAL VERSION
7  
8 =head1 NAME
9  
10 Net::Async::Redis::Commands - mixin that defines the Redis commands available
11  
12 =head1 DESCRIPTION
13  
14 This is autogenerated from the list of commands available in L<https://redis.io/commands>.
15  
16 It is intended to be loaded by L<Net::Async::Redis> to provide methods
17 for each available Redis command.
18  
19 =cut
20  
21 =head1 PACKAGE VARIABLES
22  
23 =head2 KEY_FINDER
24  
25 This maps the argument index for the C<key> information in each command.
26  
27 =cut
28  
29 12 our %KEY_FINDER = (
30 'APPEND' => 1,
31 'BITCOUNT' => 1,
32 'BITFIELD' => 1,
33 'BITOP' => 3,
34 'BITPOS' => 1,
35 'BLPOP' => 1,
36 'BRPOP' => 1,
37 'BZPOPMAX' => 1,
38 'BZPOPMIN' => 1,
39 'CLUSTER KEYSLOT' => 2,
40 'DEBUG OBJECT' => 2,
41 'DECR' => 1,
42 'DECRBY' => 1,
43 'DEL' => 1,
44 'DUMP' => 1,
45 'EVAL' => 3,
46 'EVALSHA' => 3,
47 'EXISTS' => 1,
48 'EXPIRE' => 1,
49 'EXPIREAT' => 1,
50 'GEOADD' => 1,
51 'GEODIST' => 1,
52 'GEOHASH' => 1,
53 'GEOPOS' => 1,
54 'GEORADIUS' => 1,
55 'GEORADIUSBYMEMBER' => 1,
56 'GET' => 1,
57 'GETBIT' => 1,
58 'GETRANGE' => 1,
59 'GETSET' => 1,
60 'HDEL' => 1,
61 'HEXISTS' => 1,
62 'HGET' => 1,
63 'HGETALL' => 1,
64 'HINCRBY' => 1,
65 'HINCRBYFLOAT' => 1,
66 'HKEYS' => 1,
67 'HLEN' => 1,
68 'HMGET' => 1,
69 'HMSET' => 1,
70 'HSCAN' => 1,
71 'HSET' => 1,
72 'HSETNX' => 1,
73 'HSTRLEN' => 1,
74 'HVALS' => 1,
75 'INCR' => 1,
76 'INCRBY' => 1,
77 'INCRBYFLOAT' => 1,
78 'LINDEX' => 1,
79 'LINSERT' => 1,
80 'LLEN' => 1,
81 'LPOP' => 1,
82 'LPUSH' => 1,
83 'LPUSHX' => 1,
84 'LRANGE' => 1,
85 'LREM' => 1,
86 'LSET' => 1,
87 'LTRIM' => 1,
88 'MEMORY USAGE' => 2,
89 'MGET' => 1,
90 'MIGRATE' => 3,
91 'MOVE' => 1,
92 'MSET' => 1,
93 'MSETNX' => 1,
94 'PERSIST' => 1,
95 'PEXPIRE' => 1,
96 'PEXPIREAT' => 1,
97 'PFADD' => 1,
98 'PFCOUNT' => 1,
99 'PSETEX' => 1,
100 'PTTL' => 1,
101 'RENAME' => 1,
102 'RENAMENX' => 1,
103 'RESTORE' => 1,
104 'RPOP' => 1,
105 'RPUSH' => 1,
106 'RPUSHX' => 1,
107 'SADD' => 1,
108 'SCARD' => 1,
109 'SDIFF' => 1,
110 'SDIFFSTORE' => 2,
111 'SET' => 1,
112 'SETBIT' => 1,
113 'SETEX' => 1,
114 'SETNX' => 1,
115 'SETRANGE' => 1,
116 'SINTER' => 1,
117 'SINTERSTORE' => 2,
118 'SISMEMBER' => 1,
119 'SMEMBERS' => 1,
120 'SORT' => 1,
121 'SPOP' => 1,
122 'SRANDMEMBER' => 1,
123 'SREM' => 1,
124 'SSCAN' => 1,
125 'STRLEN' => 1,
126 'SUNION' => 1,
127 'SUNIONSTORE' => 2,
128 'TOUCH' => 1,
129 'TTL' => 1,
130 'TYPE' => 1,
131 'UNLINK' => 1,
132 'WATCH' => 1,
133 'XACK' => 1,
134 'XADD' => 1,
135 'XCLAIM' => 1,
136 'XDEL' => 1,
137 'XGROUP' => 1,
138 'XINFO' => 1,
139 'XLEN' => 1,
140 'XPENDING' => 1,
141 'XRANGE' => 1,
142 'XREAD' => 4,
143 'XREADGROUP' => 6,
144 'XREVRANGE' => 1,
145 'XTRIM' => 1,
146 'ZADD' => 1,
147 'ZCARD' => 1,
148 'ZCOUNT' => 1,
149 'ZINCRBY' => 1,
150 'ZINTERSTORE' => 3,
151 'ZLEXCOUNT' => 1,
152 'ZPOPMAX' => 1,
153 'ZPOPMIN' => 1,
154 'ZRANGE' => 1,
155 'ZRANGEBYLEX' => 1,
156 'ZRANGEBYSCORE' => 1,
157 'ZRANK' => 1,
158 'ZREM' => 1,
159 'ZREMRANGEBYLEX' => 1,
160 'ZREMRANGEBYRANK' => 1,
161 'ZREMRANGEBYSCORE' => 1,
162 'ZREVRANGE' => 1,
163 'ZREVRANGEBYLEX' => 1,
164 'ZREVRANGEBYSCORE' => 1,
165 'ZREVRANK' => 1,
166 'ZSCAN' => 1,
167 'ZSCORE' => 1,
168 'ZUNIONSTORE' => 3,
169 );
170  
171 =head1 METHODS - Cluster
172  
173 =head2 cluster_addslots
174  
175 Assign new hash slots to receiving node.
176  
177 =over 4
178  
179 =item * slot [slot ...]
180  
181 =back
182  
183 L<https://redis.io/commands/cluster-addslots>
184  
185 =cut
186  
187 sub cluster_addslots : method {
188 0 ▶ my ($self, @args) = @_;
Subroutine cluster_addslots: not called CC=1 SCAR=6.9
Pod documented
189 0 $self->execute_command(qw(CLUSTER ADDSLOTS) => @args)
190 }
191  
192 =head2 cluster_bumpepoch
193  
194 Advance the cluster config epoch.
195  
196 L<https://redis.io/commands/cluster-bumpepoch>
197  
198 =cut
199  
200 sub cluster_bumpepoch : method {
201 0 ▶ my ($self, @args) = @_;
Subroutine cluster_bumpepoch: not called CC=1 SCAR=6.9
Pod documented
202 0 $self->execute_command(qw(CLUSTER BUMPEPOCH) => @args)
203 }
204  
205 =head2 cluster_count_failure_reports
206  
207 Return the number of failure reports active for a given node.
208  
209 =over 4
210  
211 =item * node-id
212  
213 =back
214  
215 L<https://redis.io/commands/cluster-count-failure-reports>
216  
217 =cut
218  
219 sub cluster_count_failure_reports : method {
220 0 ▶ my ($self, @args) = @_;
Subroutine cluster_count_failure_reports: not called CC=1 SCAR=6.9
Pod documented
221 0 $self->execute_command(qw(CLUSTER COUNT-FAILURE-REPORTS) => @args)
222 }
223  
224 =head2 cluster_countkeysinslot
225  
226 Return the number of local keys in the specified hash slot.
227  
228 =over 4
229  
230 =item * slot
231  
232 =back
233  
234 L<https://redis.io/commands/cluster-countkeysinslot>
235  
236 =cut
237  
238 sub cluster_countkeysinslot : method {
239 0 ▶ my ($self, @args) = @_;
Subroutine cluster_countkeysinslot: not called CC=1 SCAR=6.9
Pod documented
240 0 $self->execute_command(qw(CLUSTER COUNTKEYSINSLOT) => @args)
241 }
242  
243 =head2 cluster_delslots
244  
245 Set hash slots as unbound in receiving node.
246  
247 =over 4
248  
249 =item * slot [slot ...]
250  
251 =back
252  
253 L<https://redis.io/commands/cluster-delslots>
254  
255 =cut
256  
257 sub cluster_delslots : method {
258 0 ▶ my ($self, @args) = @_;
Subroutine cluster_delslots: not called CC=1 SCAR=6.9
Pod documented
259 0 $self->execute_command(qw(CLUSTER DELSLOTS) => @args)
260 }
261  
262 =head2 cluster_failover
263  
264 Forces a replica to perform a manual failover of its master.
265  
266 =over 4
267  
268 =item * [FORCE|TAKEOVER]
269  
270 =back
271  
272 L<https://redis.io/commands/cluster-failover>
273  
274 =cut
275  
276 sub cluster_failover : method {
277 0 ▶ my ($self, @args) = @_;
Subroutine cluster_failover: not called CC=1 SCAR=6.9
Pod documented
278 0 $self->execute_command(qw(CLUSTER FAILOVER) => @args)
279 }
280  
281 =head2 cluster_flushslots
282  
283 Delete a node's own slots information.
284  
285 L<https://redis.io/commands/cluster-flushslots>
286  
287 =cut
288  
289 sub cluster_flushslots : method {
290 0 ▶ my ($self, @args) = @_;
Subroutine cluster_flushslots: not called CC=1 SCAR=6.9
Pod documented
291 0 $self->execute_command(qw(CLUSTER FLUSHSLOTS) => @args)
292 }
293  
294 =head2 cluster_forget
295  
296 Remove a node from the nodes table.
297  
298 =over 4
299  
300 =item * node-id
301  
302 =back
303  
304 L<https://redis.io/commands/cluster-forget>
305  
306 =cut
307  
308 sub cluster_forget : method {
309 0 ▶ my ($self, @args) = @_;
Subroutine cluster_forget: not called CC=1 SCAR=6.9
Pod documented
310 0 $self->execute_command(qw(CLUSTER FORGET) => @args)
311 }
312  
313 =head2 cluster_getkeysinslot
314  
315 Return local key names in the specified hash slot.
316  
317 =over 4
318  
319 =item * slot
320  
321 =item * count
322  
323 =back
324  
325 L<https://redis.io/commands/cluster-getkeysinslot>
326  
327 =cut
328  
329 sub cluster_getkeysinslot : method {
330 0 ▶ my ($self, @args) = @_;
Subroutine cluster_getkeysinslot: not called CC=1 SCAR=6.9
Pod documented
331 0 $self->execute_command(qw(CLUSTER GETKEYSINSLOT) => @args)
332 }
333  
334 =head2 cluster_info
335  
336 Provides info about Redis Cluster node state.
337  
338 L<https://redis.io/commands/cluster-info>
339  
340 =cut
341  
342 sub cluster_info : method {
343 0 ▶ my ($self, @args) = @_;
Subroutine cluster_info: not called CC=1 SCAR=6.9
Pod documented
344 0 $self->execute_command(qw(CLUSTER INFO) => @args)
345 }
346  
347 =head2 cluster_keyslot
348  
349 Returns the hash slot of the specified key.
350  
351 =over 4
352  
353 =item * key
354  
355 =back
356  
357 L<https://redis.io/commands/cluster-keyslot>
358  
359 =cut
360  
361 sub cluster_keyslot : method {
362 0 ▶ my ($self, @args) = @_;
Subroutine cluster_keyslot: not called CC=1 SCAR=6.9
Pod documented
363 0 $self->execute_command(qw(CLUSTER KEYSLOT) => @args)
364 }
365  
366 =head2 cluster_meet
367  
368 Force a node cluster to handshake with another node.
369  
370 =over 4
371  
372 =item * ip
373  
374 =item * port
375  
376 =back
377  
378 L<https://redis.io/commands/cluster-meet>
379  
380 =cut
381  
382 sub cluster_meet : method {
383 0 ▶ my ($self, @args) = @_;
Subroutine cluster_meet: not called CC=1 SCAR=6.9
Pod documented
384 0 $self->execute_command(qw(CLUSTER MEET) => @args)
385 }
386  
387 =head2 cluster_myid
388  
389 Return the node id.
390  
391 L<https://redis.io/commands/cluster-myid>
392  
393 =cut
394  
395 sub cluster_myid : method {
396 0 ▶ my ($self, @args) = @_;
Subroutine cluster_myid: not called CC=1 SCAR=6.9
Pod documented
397 0 $self->execute_command(qw(CLUSTER MYID) => @args)
398 }
399  
400 =head2 cluster_nodes
401  
402 Get Cluster config for the node.
403  
404 L<https://redis.io/commands/cluster-nodes>
405  
406 =cut
407  
408 sub cluster_nodes : method {
409 0 ▶ my ($self, @args) = @_;
Subroutine cluster_nodes: not called CC=1 SCAR=6.9
Pod documented
410 0 $self->execute_command(qw(CLUSTER NODES) => @args)
411 }
412  
413 =head2 cluster_replicas
414  
415 List replica nodes of the specified master node.
416  
417 =over 4
418  
419 =item * node-id
420  
421 =back
422  
423 L<https://redis.io/commands/cluster-replicas>
424  
425 =cut
426  
427 sub cluster_replicas : method {
428 0 ▶ my ($self, @args) = @_;
Subroutine cluster_replicas: not called CC=1 SCAR=6.9
Pod documented
429 0 $self->execute_command(qw(CLUSTER REPLICAS) => @args)
430 }
431  
432 =head2 cluster_replicate
433  
434 Reconfigure a node as a replica of the specified master node.
435  
436 =over 4
437  
438 =item * node-id
439  
440 =back
441  
442 L<https://redis.io/commands/cluster-replicate>
443  
444 =cut
445  
446 sub cluster_replicate : method {
447 0 ▶ my ($self, @args) = @_;
Subroutine cluster_replicate: not called CC=1 SCAR=6.9
Pod documented
448 0 $self->execute_command(qw(CLUSTER REPLICATE) => @args)
449 }
450  
451 =head2 cluster_reset
452  
453 Reset a Redis Cluster node.
454  
455 =over 4
456  
457 =item * [HARD|SOFT]
458  
459 =back
460  
461 L<https://redis.io/commands/cluster-reset>
462  
463 =cut
464  
465 sub cluster_reset : method {
466 0 ▶ my ($self, @args) = @_;
Subroutine cluster_reset: not called CC=1 SCAR=6.9
Pod documented
467 0 $self->execute_command(qw(CLUSTER RESET) => @args)
468 }
469  
470 =head2 cluster_saveconfig
471  
472 Forces the node to save cluster state on disk.
473  
474 L<https://redis.io/commands/cluster-saveconfig>
475  
476 =cut
477  
478 sub cluster_saveconfig : method {
479 0 ▶ my ($self, @args) = @_;
Subroutine cluster_saveconfig: not called CC=1 SCAR=6.9
Pod documented
480 0 $self->execute_command(qw(CLUSTER SAVECONFIG) => @args)
481 }
482  
483 =head2 cluster_set_config_epoch
484  
485 Set the configuration epoch in a new node.
486  
487 =over 4
488  
489 =item * config-epoch
490  
491 =back
492  
493 L<https://redis.io/commands/cluster-set-config-epoch>
494  
495 =cut
496  
497 sub cluster_set_config_epoch : method {
498 0 ▶ my ($self, @args) = @_;
Subroutine cluster_set_config_epoch: not called CC=1 SCAR=6.9
Pod documented
499 0 $self->execute_command(qw(CLUSTER SET-CONFIG-EPOCH) => @args)
500 }
501  
502 =head2 cluster_setslot
503  
504 Bind a hash slot to a specific node.
505  
506 =over 4
507  
508 =item * slot
509  
510 =item * IMPORTING|MIGRATING|STABLE|NODE
511  
512 =item * [node-id]
513  
514 =back
515  
516 L<https://redis.io/commands/cluster-setslot>
517  
518 =cut
519  
520 sub cluster_setslot : method {
521 0 ▶ my ($self, @args) = @_;
Subroutine cluster_setslot: not called CC=1 SCAR=6.9
Pod documented
522 0 $self->execute_command(qw(CLUSTER SETSLOT) => @args)
523 }
524  
525 =head2 cluster_slaves
526  
527 List replica nodes of the specified master node.
528  
529 =over 4
530  
531 =item * node-id
532  
533 =back
534  
535 L<https://redis.io/commands/cluster-slaves>
536  
537 =cut
538  
539 sub cluster_slaves : method {
540 0 ▶ my ($self, @args) = @_;
Subroutine cluster_slaves: not called CC=1 SCAR=6.9
Pod documented
541 0 $self->execute_command(qw(CLUSTER SLAVES) => @args)
542 }
543  
544 =head2 cluster_slots
545  
546 Get array of Cluster slot to node mappings.
547  
548 L<https://redis.io/commands/cluster-slots>
549  
550 =cut
551  
552 sub cluster_slots : method {
553 0 ▶ my ($self, @args) = @_;
Subroutine cluster_slots: not called CC=1 SCAR=6.9
Pod documented
554 0 $self->execute_command(qw(CLUSTER SLOTS) => @args)
555 }
556  
557 =head2 readonly
558  
559 Enables read queries for a connection to a cluster replica node.
560  
561 L<https://redis.io/commands/readonly>
562  
563 =cut
564  
565 sub readonly : method {
566 0 ▶ my ($self, @args) = @_;
Subroutine readonly: not called CC=1 SCAR=6.9
Pod documented
567 0 $self->execute_command(qw(READONLY) => @args)
568 }
569  
570 =head2 readwrite
571  
572 Disables read queries for a connection to a cluster replica node.
573  
574 L<https://redis.io/commands/readwrite>
575  
576 =cut
577  
578 sub readwrite : method {
579 0 ▶ my ($self, @args) = @_;
Subroutine readwrite: not called CC=1 SCAR=6.9
Pod documented
580 0 $self->execute_command(qw(READWRITE) => @args)
581 }
582  
583 =head1 METHODS - Connection
584  
585 =head2 auth
586  
587 Authenticate to the server.
588  
589 =over 4
590  
591 =item * password
592  
593 =back
594  
595 L<https://redis.io/commands/auth>
596  
597 =cut
598  
599 sub auth : method {
600 0 ▶ my ($self, @args) = @_;
Subroutine auth: not called CC=1 SCAR=6.9
Pod documented
601 0 $self->execute_command(qw(AUTH) => @args)
602 }
603  
604 =head2 client_caching
605  
606 Instruct the server about tracking or not keys in the next request.
607  
608 =over 4
609  
610 =item * YES|NO
611  
612 =back
613  
614 L<https://redis.io/commands/client-caching>
615  
616 =cut
617  
618 sub client_caching : method {
619 0 ▶ my ($self, @args) = @_;
Subroutine client_caching: not called CC=1 SCAR=6.9
Pod documented
620 0 $self->execute_command(qw(CLIENT CACHING) => @args)
621 }
622  
623 =head2 client_getname
624  
625 Get the current connection name.
626  
627 L<https://redis.io/commands/client-getname>
628  
629 =cut
630  
631 sub client_getname : method {
632 0 ▶ my ($self, @args) = @_;
Subroutine client_getname: not called CC=1 SCAR=6.9
Pod documented
633 0 $self->execute_command(qw(CLIENT GETNAME) => @args)
634 }
635  
636 =head2 client_getredir
637  
638 Get tracking notifications redirection client ID if any.
639  
640 L<https://redis.io/commands/client-getredir>
641  
642 =cut
643  
644 sub client_getredir : method {
645 0 ▶ my ($self, @args) = @_;
Subroutine client_getredir: not called CC=1 SCAR=6.9
Pod documented
646 0 $self->execute_command(qw(CLIENT GETREDIR) => @args)
647 }
648  
649 =head2 client_id
650  
651 Returns the client ID for the current connection.
652  
653 L<https://redis.io/commands/client-id>
654  
655 =cut
656  
657 sub client_id : method {
658 0 ▶ my ($self, @args) = @_;
Subroutine client_id: not called CC=1 SCAR=6.9
Pod documented
659 0 $self->execute_command(qw(CLIENT ID) => @args)
660 }
661  
662 =head2 client_kill
663  
664 Kill the connection of a client.
665  
666 =over 4
667  
668 =item * [ip:port]
669  
670 =item * [ID client-id]
671  
672 =item * [TYPE normal|master|slave|pubsub]
673  
674 =item * [ADDR ip:port]
675  
676 =item * [SKIPME yes/no]
677  
678 =back
679  
680 L<https://redis.io/commands/client-kill>
681  
682 =cut
683  
684 sub client_kill : method {
685 0 ▶ my ($self, @args) = @_;
Subroutine client_kill: not called CC=1 SCAR=6.9
Pod documented
686 0 $self->execute_command(qw(CLIENT KILL) => @args)
687 }
688  
689 =head2 client_list
690  
691 Get the list of client connections.
692  
693 =over 4
694  
695 =item * [TYPE normal|master|replica|pubsub]
696  
697 =back
698  
699 L<https://redis.io/commands/client-list>
700  
701 =cut
702  
703 sub client_list : method {
704 0 ▶ my ($self, @args) = @_;
Subroutine client_list: not called CC=1 SCAR=6.9
Pod documented
705 0 $self->execute_command(qw(CLIENT LIST) => @args)
706 }
707  
708 =head2 client_pause
709  
710 Stop processing commands from clients for some time.
711  
712 =over 4
713  
714 =item * timeout
715  
716 =back
717  
718 L<https://redis.io/commands/client-pause>
719  
720 =cut
721  
722 sub client_pause : method {
723 0 ▶ my ($self, @args) = @_;
Subroutine client_pause: not called CC=1 SCAR=6.9
Pod documented
724 0 $self->execute_command(qw(CLIENT PAUSE) => @args)
725 }
726  
727 =head2 client_reply
728  
729 Instruct the server whether to reply to commands.
730  
731 =over 4
732  
733 =item * ON|OFF|SKIP
734  
735 =back
736  
737 L<https://redis.io/commands/client-reply>
738  
739 =cut
740  
741 sub client_reply : method {
742 0 ▶ my ($self, @args) = @_;
Subroutine client_reply: not called CC=1 SCAR=6.9
Pod documented
743 0 $self->execute_command(qw(CLIENT REPLY) => @args)
744 }
745  
746 =head2 client_setname
747  
748 Set the current connection name.
749  
750 =over 4
751  
752 =item * connection-name
753  
754 =back
755  
756 L<https://redis.io/commands/client-setname>
757  
758 =cut
759  
760 sub client_setname : method {
761 0 ▶ my ($self, @args) = @_;
Subroutine client_setname: not called CC=1 SCAR=6.9
Pod documented
762 0 $self->execute_command(qw(CLIENT SETNAME) => @args)
763 }
764  
765 =head2 client_tracking
766  
767 Enable or disable server assisted client side caching support.
768  
769 =over 4
770  
771 =item * ON|OFF
772  
773 =item * [REDIRECT client-id]
774  
775 =item * [PREFIX prefix [PREFIX prefix ...]]
776  
777 =item * [BCAST]
778  
779 =item * [OPTIN]
780  
781 =item * [OPTOUT]
782  
783 =item * [NOLOOP]
784  
785 =back
786  
787 L<https://redis.io/commands/client-tracking>
788  
789 =cut
790  
791 sub client_tracking : method {
792 0 ▶ my ($self, @args) = @_;
Subroutine client_tracking: not called CC=1 SCAR=6.9
Pod documented
793 0 $self->execute_command(qw(CLIENT TRACKING) => @args)
794 }
795  
796 =head2 client_unblock
797  
798 Unblock a client blocked in a blocking command from a different connection.
799  
800 =over 4
801  
802 =item * client-id
803  
804 =item * [TIMEOUT|ERROR]
805  
806 =back
807  
808 L<https://redis.io/commands/client-unblock>
809  
810 =cut
811  
812 sub client_unblock : method {
813 0 ▶ my ($self, @args) = @_;
Subroutine client_unblock: not called CC=1 SCAR=6.9
Pod documented
814 0 $self->execute_command(qw(CLIENT UNBLOCK) => @args)
815 }
816  
817 =head2 echo
818  
819 Echo the given string.
820  
821 =over 4
822  
823 =item * message
824  
825 =back
826  
827 L<https://redis.io/commands/echo>
828  
829 =cut
830  
831 sub echo : method {
832 0 ▶ my ($self, @args) = @_;
Subroutine echo: not called CC=1 SCAR=6.9
Pod documented
833 0 $self->execute_command(qw(ECHO) => @args)
834 }
835  
836 =head2 hello
837  
838 switch Redis protocol.
839  
840 =over 4
841  
842 =item * protover
843  
844 =item * [AUTH username password]
845  
846 =item * [SETNAME clientname]
847  
848 =back
849  
850 L<https://redis.io/commands/hello>
851  
852 =cut
853  
854 sub hello : method {
855 0 ▶ my ($self, @args) = @_;
Subroutine hello: not called CC=1 SCAR=6.9
Pod documented
856 0 $self->execute_command(qw(HELLO) => @args)
857 }
858  
859 =head2 ping
860  
861 Ping the server.
862  
863 =over 4
864  
865 =item * [message]
866  
867 =back
868  
869 L<https://redis.io/commands/ping>
870  
871 =cut
872  
873 sub ping : method {
874 0 ▶ my ($self, @args) = @_;
Subroutine ping: not called CC=1 SCAR=6.9
Pod documented
875 0 $self->execute_command(qw(PING) => @args)
876 }
877  
878 =head2 quit
879  
880 Close the connection.
881  
882 L<https://redis.io/commands/quit>
883  
884 =cut
885  
886 sub quit : method {
887 0 ▶ my ($self, @args) = @_;
Subroutine quit: not called CC=1 SCAR=6.9
Pod documented
888 0 $self->execute_command(qw(QUIT) => @args)
889 }
890  
891 =head2 select
892  
893 Change the selected database for the current connection.
894  
895 =over 4
896  
897 =item * index
898  
899 =back
900  
901 L<https://redis.io/commands/select>
902  
903 =cut
904  
905 sub select : method {
906 0 ▶ my ($self, @args) = @_;
Subroutine select: not called CC=1 SCAR=6.9
Pod documented
907 0 $self->execute_command(qw(SELECT) => @args)
908 }
909  
910 =head1 METHODS - Generic
911  
912 =head2 del
913  
914 Delete a key.
915  
916 =over 4
917  
918 =item * key [key ...]
919  
920 =back
921  
922 L<https://redis.io/commands/del>
923  
924 =cut
925  
926 sub del : method {
927 0 ▶ my ($self, @args) = @_;
Subroutine del: not called CC=1 SCAR=6.9
Pod documented
928 0 $self->execute_command(qw(DEL) => @args)
929 }
930  
931 =head2 dump
932  
933 Return a serialized version of the value stored at the specified key.
934  
935 =over 4
936  
937 =item * key
938  
939 =back
940  
941 L<https://redis.io/commands/dump>
942  
943 =cut
944  
945 sub dump : method {
946 0 ▶ my ($self, @args) = @_;
Subroutine dump: not called CC=1 SCAR=6.9
Pod documented
947 0 $self->execute_command(qw(DUMP) => @args)
948 }
949  
950 =head2 exists
951  
952 Determine if a key exists.
953  
954 =over 4
955  
956 =item * key [key ...]
957  
958 =back
959  
960 L<https://redis.io/commands/exists>
961  
962 =cut
963  
964 sub exists : method {
965 0 ▶ my ($self, @args) = @_;
Subroutine exists: not called CC=1 SCAR=6.9
Pod documented
966 0 $self->execute_command(qw(EXISTS) => @args)
967 }
968  
969 =head2 expire
970  
971 Set a key's time to live in seconds.
972  
973 =over 4
974  
975 =item * key
976  
977 =item * seconds
978  
979 =back
980  
981 L<https://redis.io/commands/expire>
982  
983 =cut
984  
985 sub expire : method {
986 0 ▶ my ($self, @args) = @_;
Subroutine expire: not called CC=1 SCAR=6.9
Pod documented
987 0 $self->execute_command(qw(EXPIRE) => @args)
988 }
989  
990 =head2 expireat
991  
992 Set the expiration for a key as a UNIX timestamp.
993  
994 =over 4
995  
996 =item * key
997  
998 =item * timestamp
999  
1000 =back
1001  
1002 L<https://redis.io/commands/expireat>
1003  
1004 =cut
1005  
1006 sub expireat : method {
1007 0 ▶ my ($self, @args) = @_;
Subroutine expireat: not called CC=1 SCAR=6.9
Pod documented
1008 0 $self->execute_command(qw(EXPIREAT) => @args)
1009 }
1010  
1011 =head2 keys
1012  
1013 Find all keys matching the given pattern.
1014  
1015 =over 4
1016  
1017 =item * pattern
1018  
1019 =back
1020  
1021 L<https://redis.io/commands/keys>
1022  
1023 =cut
1024  
1025 sub keys : method {
1026 0 ▶ my ($self, @args) = @_;
Subroutine keys: not called CC=1 SCAR=6.9
Pod documented
1027 0 $self->execute_command(qw(KEYS) => @args)
1028 }
1029  
1030 =head2 migrate
1031  
1032 Atomically transfer a key from a Redis instance to another one.
1033  
1034 =over 4
1035  
1036 =item * host
1037  
1038 =item * port
1039  
1040 =item * key|""
1041  
1042 =item * destination-db
1043  
1044 =item * timeout
1045  
1046 =item * [COPY]
1047  
1048 =item * [REPLACE]
1049  
1050 =item * [AUTH password]
1051  
1052 =item * [KEYS key [key ...]]
1053  
1054 =back
1055  
1056 L<https://redis.io/commands/migrate>
1057  
1058 =cut
1059  
1060 sub migrate : method {
1061 0 ▶ my ($self, @args) = @_;
Subroutine migrate: not called CC=1 SCAR=6.9
Pod documented
1062 0 $self->execute_command(qw(MIGRATE) => @args)
1063 }
1064  
1065 =head2 move
1066  
1067 Move a key to another database.
1068  
1069 =over 4
1070  
1071 =item * key
1072  
1073 =item * db
1074  
1075 =back
1076  
1077 L<https://redis.io/commands/move>
1078  
1079 =cut
1080  
1081 sub move : method {
1082 0 ▶ my ($self, @args) = @_;
Subroutine move: not called CC=1 SCAR=6.9
Pod documented
1083 0 $self->execute_command(qw(MOVE) => @args)
1084 }
1085  
1086 =head2 object
1087  
1088 Inspect the internals of Redis objects.
1089  
1090 =over 4
1091  
1092 =item * subcommand
1093  
1094 =item * [arguments [arguments ...]]
1095  
1096 =back
1097  
1098 L<https://redis.io/commands/object>
1099  
1100 =cut
1101  
1102 sub object : method {
1103 0 ▶ my ($self, @args) = @_;
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
1104 0 $self->execute_command(qw(OBJECT) => @args)
1105 }
1106  
1107 =head2 persist
1108  
1109 Remove the expiration from a key.
1110  
1111 =over 4
1112  
1113 =item * key
1114  
1115 =back
1116  
1117 L<https://redis.io/commands/persist>
1118  
1119 =cut
1120  
1121 sub persist : method {
1122 0 ▶ my ($self, @args) = @_;
Subroutine persist: not called CC=1 SCAR=6.9
Pod documented
1123 0 $self->execute_command(qw(PERSIST) => @args)
1124 }
1125  
1126 =head2 pexpire
1127  
1128 Set a key's time to live in milliseconds.
1129  
1130 =over 4
1131  
1132 =item * key
1133  
1134 =item * milliseconds
1135  
1136 =back
1137  
1138 L<https://redis.io/commands/pexpire>
1139  
1140 =cut
1141  
1142 sub pexpire : method {
1143 0 ▶ my ($self, @args) = @_;
Subroutine pexpire: not called CC=1 SCAR=6.9
Pod documented
1144 0 $self->execute_command(qw(PEXPIRE) => @args)
1145 }
1146  
1147 =head2 pexpireat
1148  
1149 Set the expiration for a key as a UNIX timestamp specified in milliseconds.
1150  
1151 =over 4
1152  
1153 =item * key
1154  
1155 =item * milliseconds-timestamp
1156  
1157 =back
1158  
1159 L<https://redis.io/commands/pexpireat>
1160  
1161 =cut
1162  
1163 sub pexpireat : method {
1164 0 ▶ my ($self, @args) = @_;
Subroutine pexpireat: not called CC=1 SCAR=6.9
Pod documented
1165 0 $self->execute_command(qw(PEXPIREAT) => @args)
1166 }
1167  
1168 =head2 pttl
1169  
1170 Get the time to live for a key in milliseconds.
1171  
1172 =over 4
1173  
1174 =item * key
1175  
1176 =back
1177  
1178 L<https://redis.io/commands/pttl>
1179  
1180 =cut
1181  
1182 sub pttl : method {
1183 0 ▶ my ($self, @args) = @_;
Subroutine pttl: not called CC=1 SCAR=6.9
Pod documented
1184 0 $self->execute_command(qw(PTTL) => @args)
1185 }
1186  
1187 =head2 randomkey
1188  
1189 Return a random key from the keyspace.
1190  
1191 L<https://redis.io/commands/randomkey>
1192  
1193 =cut
1194  
1195 sub randomkey : method {
1196 0 ▶ my ($self, @args) = @_;
Subroutine randomkey: not called CC=1 SCAR=6.9
Pod documented
1197 0 $self->execute_command(qw(RANDOMKEY) => @args)
1198 }
1199  
1200 =head2 rename
1201  
1202 Rename a key.
1203  
1204 =over 4
1205  
1206 =item * key
1207  
1208 =item * newkey
1209  
1210 =back
1211  
1212 L<https://redis.io/commands/rename>
1213  
1214 =cut
1215  
1216 sub rename : method {
1217 0 ▶ my ($self, @args) = @_;
Subroutine rename: not called CC=1 SCAR=6.9
Pod documented
1218 0 $self->execute_command(qw(RENAME) => @args)
1219 }
1220  
1221 =head2 renamenx
1222  
1223 Rename a key, only if the new key does not exist.
1224  
1225 =over 4
1226  
1227 =item * key
1228  
1229 =item * newkey
1230  
1231 =back
1232  
1233 L<https://redis.io/commands/renamenx>
1234  
1235 =cut
1236  
1237 sub renamenx : method {
1238 0 ▶ my ($self, @args) = @_;
Subroutine renamenx: not called CC=1 SCAR=6.9
Pod documented
1239 0 $self->execute_command(qw(RENAMENX) => @args)
1240 }
1241  
1242 =head2 restore
1243  
1244 Create a key using the provided serialized value, previously obtained using DUMP.
1245  
1246 =over 4
1247  
1248 =item * key
1249  
1250 =item * ttl
1251  
1252 =item * serialized-value
1253  
1254 =item * [REPLACE]
1255  
1256 =item * [ABSTTL]
1257  
1258 =item * [IDLETIME seconds]
1259  
1260 =item * [FREQ frequency]
1261  
1262 =back
1263  
1264 L<https://redis.io/commands/restore>
1265  
1266 =cut
1267  
1268 sub restore : method {
1269 0 ▶ my ($self, @args) = @_;
Subroutine restore: not called CC=1 SCAR=6.9
Pod documented
1270 0 $self->execute_command(qw(RESTORE) => @args)
1271 }
1272  
1273 =head2 scan
1274  
1275 Incrementally iterate the keys space.
1276  
1277 =over 4
1278  
1279 =item * cursor
1280  
1281 =item * [MATCH pattern]
1282  
1283 =item * [COUNT count]
1284  
1285 =item * [TYPE type]
1286  
1287 =back
1288  
1289 L<https://redis.io/commands/scan>
1290  
1291 =cut
1292  
1293 sub scan : method {
1294 0 ▶ my ($self, @args) = @_;
Subroutine scan: not called CC=1 SCAR=6.9
Pod documented
1295 0 $self->execute_command(qw(SCAN) => @args)
1296 }
1297  
1298 =head2 sort
1299  
1300 Sort the elements in a list, set or sorted set.
1301  
1302 =over 4
1303  
1304 =item * key
1305  
1306 =item * [BY pattern]
1307  
1308 =item * [LIMIT offset count]
1309  
1310 =item * [GET pattern [GET pattern ...]]
1311  
1312 =item * [ASC|DESC]
1313  
1314 =item * [ALPHA]
1315  
1316 =item * [STORE destination]
1317  
1318 =back
1319  
1320 L<https://redis.io/commands/sort>
1321  
1322 =cut
1323  
1324 sub sort : method {
1325 0 ▶ my ($self, @args) = @_;
Subroutine sort: not called CC=1 SCAR=6.9
Pod documented
1326 0 $self->execute_command(qw(SORT) => @args)
1327 }
1328  
1329 =head2 touch
1330  
1331 Alters the last access time of a key(s). Returns the number of existing keys specified.
1332  
1333 =over 4
1334  
1335 =item * key [key ...]
1336  
1337 =back
1338  
1339 L<https://redis.io/commands/touch>
1340  
1341 =cut
1342  
1343 sub touch : method {
1344 0 ▶ my ($self, @args) = @_;
Subroutine touch: not called CC=1 SCAR=6.9
Pod documented
1345 0 $self->execute_command(qw(TOUCH) => @args)
1346 }
1347  
1348 =head2 ttl
1349  
1350 Get the time to live for a key.
1351  
1352 =over 4
1353  
1354 =item * key
1355  
1356 =back
1357  
1358 L<https://redis.io/commands/ttl>
1359  
1360 =cut
1361  
1362 sub ttl : method {
1363 0 ▶ my ($self, @args) = @_;
Subroutine ttl: not called CC=1 SCAR=6.9
Pod documented
1364 0 $self->execute_command(qw(TTL) => @args)
1365 }
1366  
1367 =head2 type
1368  
1369 Determine the type stored at key.
1370  
1371 =over 4
1372  
1373 =item * key
1374  
1375 =back
1376  
1377 L<https://redis.io/commands/type>
1378  
1379 =cut
1380  
1381 sub type : method {
1382 0 ▶ my ($self, @args) = @_;
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
1383 0 $self->execute_command(qw(TYPE) => @args)
1384 }
1385  
1386 =head2 unlink
1387  
1388 Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.
1389  
1390 =over 4
1391  
1392 =item * key [key ...]
1393  
1394 =back
1395  
1396 L<https://redis.io/commands/unlink>
1397  
1398 =cut
1399  
1400 sub unlink : method {
1401 0 ▶ my ($self, @args) = @_;
Subroutine unlink: not called CC=1 SCAR=6.9
Pod documented
1402 0 $self->execute_command(qw(UNLINK) => @args)
1403 }
1404  
1405 =head2 wait
1406  
1407 Wait for the synchronous replication of all the write commands sent in the context of the current connection.
1408  
1409 =over 4
1410  
1411 =item * numreplicas
1412  
1413 =item * timeout
1414  
1415 =back
1416  
1417 L<https://redis.io/commands/wait>
1418  
1419 =cut
1420  
1421 sub wait : method {
1422 0 ▶ my ($self, @args) = @_;
Subroutine wait: not called CC=1 SCAR=6.9
Pod documented
1423 0 $self->execute_command(qw(WAIT) => @args)
1424 }
1425  
1426 =head1 METHODS - Geo
1427  
1428 =head2 geoadd
1429  
1430 Add one or more geospatial items in the geospatial index represented using a sorted set.
1431  
1432 =over 4
1433  
1434 =item * key
1435  
1436 =item * longitude latitude member [longitude latitude member ...]
1437  
1438 =back
1439  
1440 L<https://redis.io/commands/geoadd>
1441  
1442 =cut
1443  
1444 sub geoadd : method {
1445 0 ▶ my ($self, @args) = @_;
Subroutine geoadd: not called CC=1 SCAR=6.9
Pod documented
1446 0 $self->execute_command(qw(GEOADD) => @args)
1447 }
1448  
1449 =head2 geodist
1450  
1451 Returns the distance between two members of a geospatial index.
1452  
1453 =over 4
1454  
1455 =item * key
1456  
1457 =item * member1
1458  
1459 =item * member2
1460  
1461 =item * [m|km|ft|mi]
1462  
1463 =back
1464  
1465 L<https://redis.io/commands/geodist>
1466  
1467 =cut
1468  
1469 sub geodist : method {
1470 0 ▶ my ($self, @args) = @_;
Subroutine geodist: not called CC=1 SCAR=6.9
Pod documented
1471 0 $self->execute_command(qw(GEODIST) => @args)
1472 }
1473  
1474 =head2 geohash
1475  
1476 Returns members of a geospatial index as standard geohash strings.
1477  
1478 =over 4
1479  
1480 =item * key
1481  
1482 =item * member [member ...]
1483  
1484 =back
1485  
1486 L<https://redis.io/commands/geohash>
1487  
1488 =cut
1489  
1490 sub geohash : method {
1491 0 ▶ my ($self, @args) = @_;
Subroutine geohash: not called CC=1 SCAR=6.9
Pod documented
1492 0 $self->execute_command(qw(GEOHASH) => @args)
1493 }
1494  
1495 =head2 geopos
1496  
1497 Returns longitude and latitude of members of a geospatial index.
1498  
1499 =over 4
1500  
1501 =item * key
1502  
1503 =item * member [member ...]
1504  
1505 =back
1506  
1507 L<https://redis.io/commands/geopos>
1508  
1509 =cut
1510  
1511 sub geopos : method {
1512 0 ▶ my ($self, @args) = @_;
Subroutine geopos: not called CC=1 SCAR=6.9
Pod documented
1513 0 $self->execute_command(qw(GEOPOS) => @args)
1514 }
1515  
1516 =head2 georadius
1517  
1518 Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point.
1519  
1520 =over 4
1521  
1522 =item * key
1523  
1524 =item * longitude
1525  
1526 =item * latitude
1527  
1528 =item * radius
1529  
1530 =item * m|km|ft|mi
1531  
1532 =item * [WITHCOORD]
1533  
1534 =item * [WITHDIST]
1535  
1536 =item * [WITHHASH]
1537  
1538 =item * [COUNT count]
1539  
1540 =item * [ASC|DESC]
1541  
1542 =item * [STORE key]
1543  
1544 =item * [STOREDIST key]
1545  
1546 =back
1547  
1548 L<https://redis.io/commands/georadius>
1549  
1550 =cut
1551  
1552 sub georadius : method {
1553 0 ▶ my ($self, @args) = @_;
Subroutine georadius: not called CC=1 SCAR=6.9
Pod documented
1554 0 $self->execute_command(qw(GEORADIUS) => @args)
1555 }
1556  
1557 =head2 georadiusbymember
1558  
1559 Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member.
1560  
1561 =over 4
1562  
1563 =item * key
1564  
1565 =item * member
1566  
1567 =item * radius
1568  
1569 =item * m|km|ft|mi
1570  
1571 =item * [WITHCOORD]
1572  
1573 =item * [WITHDIST]
1574  
1575 =item * [WITHHASH]
1576  
1577 =item * [COUNT count]
1578  
1579 =item * [ASC|DESC]
1580  
1581 =item * [STORE key]
1582  
1583 =item * [STOREDIST key]
1584  
1585 =back
1586  
1587 L<https://redis.io/commands/georadiusbymember>
1588  
1589 =cut
1590  
1591 sub georadiusbymember : method {
1592 0 ▶ my ($self, @args) = @_;
Subroutine georadiusbymember: not called CC=1 SCAR=6.9
Pod documented
1593 0 $self->execute_command(qw(GEORADIUSBYMEMBER) => @args)
1594 }
1595  
1596 =head1 METHODS - Hash
1597  
1598 =head2 hdel
1599  
1600 Delete one or more hash fields.
1601  
1602 =over 4
1603  
1604 =item * key
1605  
1606 =item * field [field ...]
1607  
1608 =back
1609  
1610 L<https://redis.io/commands/hdel>
1611  
1612 =cut
1613  
1614 sub hdel : method {
1615 0 ▶ my ($self, @args) = @_;
Subroutine hdel: not called CC=1 SCAR=6.9
Pod documented
1616 0 $self->execute_command(qw(HDEL) => @args)
1617 }
1618  
1619 =head2 hexists
1620  
1621 Determine if a hash field exists.
1622  
1623 =over 4
1624  
1625 =item * key
1626  
1627 =item * field
1628  
1629 =back
1630  
1631 L<https://redis.io/commands/hexists>
1632  
1633 =cut
1634  
1635 sub hexists : method {
1636 0 ▶ my ($self, @args) = @_;
Subroutine hexists: not called CC=1 SCAR=6.9
Pod documented
1637 0 $self->execute_command(qw(HEXISTS) => @args)
1638 }
1639  
1640 =head2 hget
1641  
1642 Get the value of a hash field.
1643  
1644 =over 4
1645  
1646 =item * key
1647  
1648 =item * field
1649  
1650 =back
1651  
1652 L<https://redis.io/commands/hget>
1653  
1654 =cut
1655  
1656 sub hget : method {
1657 0 ▶ my ($self, @args) = @_;
Subroutine hget: not called CC=1 SCAR=6.9
Pod documented
1658 0 $self->execute_command(qw(HGET) => @args)
1659 }
1660  
1661 =head2 hgetall
1662  
1663 Get all the fields and values in a hash.
1664  
1665 =over 4
1666  
1667 =item * key
1668  
1669 =back
1670  
1671 L<https://redis.io/commands/hgetall>
1672  
1673 =cut
1674  
1675 sub hgetall : method {
1676 0 ▶ my ($self, @args) = @_;
Subroutine hgetall: not called CC=1 SCAR=6.9
Pod documented
1677 0 $self->execute_command(qw(HGETALL) => @args)
1678 }
1679  
1680 =head2 hincrby
1681  
1682 Increment the integer value of a hash field by the given number.
1683  
1684 =over 4
1685  
1686 =item * key
1687  
1688 =item * field
1689  
1690 =item * increment
1691  
1692 =back
1693  
1694 L<https://redis.io/commands/hincrby>
1695  
1696 =cut
1697  
1698 sub hincrby : method {
1699 0 ▶ my ($self, @args) = @_;
Subroutine hincrby: not called CC=1 SCAR=6.9
Pod documented
1700 0 $self->execute_command(qw(HINCRBY) => @args)
1701 }
1702  
1703 =head2 hincrbyfloat
1704  
1705 Increment the float value of a hash field by the given amount.
1706  
1707 =over 4
1708  
1709 =item * key
1710  
1711 =item * field
1712  
1713 =item * increment
1714  
1715 =back
1716  
1717 L<https://redis.io/commands/hincrbyfloat>
1718  
1719 =cut
1720  
1721 sub hincrbyfloat : method {
1722 0 ▶ my ($self, @args) = @_;
Subroutine hincrbyfloat: not called CC=1 SCAR=6.9
Pod documented
1723 0 $self->execute_command(qw(HINCRBYFLOAT) => @args)
1724 }
1725  
1726 =head2 hkeys
1727  
1728 Get all the fields in a hash.
1729  
1730 =over 4
1731  
1732 =item * key
1733  
1734 =back
1735  
1736 L<https://redis.io/commands/hkeys>
1737  
1738 =cut
1739  
1740 sub hkeys : method {
1741 0 ▶ my ($self, @args) = @_;
Subroutine hkeys: not called CC=1 SCAR=6.9
Pod documented
1742 0 $self->execute_command(qw(HKEYS) => @args)
1743 }
1744  
1745 =head2 hlen
1746  
1747 Get the number of fields in a hash.
1748  
1749 =over 4
1750  
1751 =item * key
1752  
1753 =back
1754  
1755 L<https://redis.io/commands/hlen>
1756  
1757 =cut
1758  
1759 sub hlen : method {
1760 0 ▶ my ($self, @args) = @_;
Subroutine hlen: not called CC=1 SCAR=6.9
Pod documented
1761 0 $self->execute_command(qw(HLEN) => @args)
1762 }
1763  
1764 =head2 hmget
1765  
1766 Get the values of all the given hash fields.
1767  
1768 =over 4
1769  
1770 =item * key
1771  
1772 =item * field [field ...]
1773  
1774 =back
1775  
1776 L<https://redis.io/commands/hmget>
1777  
1778 =cut
1779  
1780 sub hmget : method {
1781 0 ▶ my ($self, @args) = @_;
Subroutine hmget: not called CC=1 SCAR=6.9
Pod documented
1782 0 $self->execute_command(qw(HMGET) => @args)
1783 }
1784  
1785 =head2 hmset
1786  
1787 Set multiple hash fields to multiple values.
1788  
1789 =over 4
1790  
1791 =item * key
1792  
1793 =item * field value [field value ...]
1794  
1795 =back
1796  
1797 L<https://redis.io/commands/hmset>
1798  
1799 =cut
1800  
1801 sub hmset : method {
1802 0 ▶ my ($self, @args) = @_;
Subroutine hmset: not called CC=1 SCAR=6.9
Pod documented
1803 0 $self->execute_command(qw(HMSET) => @args)
1804 }
1805  
1806 =head2 hscan
1807  
1808 Incrementally iterate hash fields and associated values.
1809  
1810 =over 4
1811  
1812 =item * key
1813  
1814 =item * cursor
1815  
1816 =item * [MATCH pattern]
1817  
1818 =item * [COUNT count]
1819  
1820 =back
1821  
1822 L<https://redis.io/commands/hscan>
1823  
1824 =cut
1825  
1826 sub hscan : method {
1827 0 ▶ my ($self, @args) = @_;
Subroutine hscan: not called CC=1 SCAR=6.9
Pod documented
1828 0 $self->execute_command(qw(HSCAN) => @args)
1829 }
1830  
1831 =head2 hset
1832  
1833 Set the string value of a hash field.
1834  
1835 =over 4
1836  
1837 =item * key
1838  
1839 =item * field value [field value ...]
1840  
1841 =back
1842  
1843 L<https://redis.io/commands/hset>
1844  
1845 =cut
1846  
1847 sub hset : method {
1848 0 ▶ my ($self, @args) = @_;
Subroutine hset: not called CC=1 SCAR=6.9
Pod documented
1849 0 $self->execute_command(qw(HSET) => @args)
1850 }
1851  
1852 =head2 hsetnx
1853  
1854 Set the value of a hash field, only if the field does not exist.
1855  
1856 =over 4
1857  
1858 =item * key
1859  
1860 =item * field
1861  
1862 =item * value
1863  
1864 =back
1865  
1866 L<https://redis.io/commands/hsetnx>
1867  
1868 =cut
1869  
1870 sub hsetnx : method {
1871 0 ▶ my ($self, @args) = @_;
Subroutine hsetnx: not called CC=1 SCAR=6.9
Pod documented
1872 0 $self->execute_command(qw(HSETNX) => @args)
1873 }
1874  
1875 =head2 hstrlen
1876  
1877 Get the length of the value of a hash field.
1878  
1879 =over 4
1880  
1881 =item * key
1882  
1883 =item * field
1884  
1885 =back
1886  
1887 L<https://redis.io/commands/hstrlen>
1888  
1889 =cut
1890  
1891 sub hstrlen : method {
1892 0 ▶ my ($self, @args) = @_;
Subroutine hstrlen: not called CC=1 SCAR=6.9
Pod documented
1893 0 $self->execute_command(qw(HSTRLEN) => @args)
1894 }
1895  
1896 =head2 hvals
1897  
1898 Get all the values in a hash.
1899  
1900 =over 4
1901  
1902 =item * key
1903  
1904 =back
1905  
1906 L<https://redis.io/commands/hvals>
1907  
1908 =cut
1909  
1910 sub hvals : method {
1911 0 ▶ my ($self, @args) = @_;
Subroutine hvals: not called CC=1 SCAR=6.9
Pod documented
1912 0 $self->execute_command(qw(HVALS) => @args)
1913 }
1914  
1915 =head1 METHODS - Hyperloglog
1916  
1917 =head2 pfadd
1918  
1919 Adds the specified elements to the specified HyperLogLog.
1920  
1921 =over 4
1922  
1923 =item * key
1924  
1925 =item * element [element ...]
1926  
1927 =back
1928  
1929 L<https://redis.io/commands/pfadd>
1930  
1931 =cut
1932  
1933 sub pfadd : method {
1934 0 ▶ my ($self, @args) = @_;
Subroutine pfadd: not called CC=1 SCAR=6.9
Pod documented
1935 0 $self->execute_command(qw(PFADD) => @args)
1936 }
1937  
1938 =head2 pfcount
1939  
1940 Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
1941  
1942 =over 4
1943  
1944 =item * key [key ...]
1945  
1946 =back
1947  
1948 L<https://redis.io/commands/pfcount>
1949  
1950 =cut
1951  
1952 sub pfcount : method {
1953 0 ▶ my ($self, @args) = @_;
Subroutine pfcount: not called CC=1 SCAR=6.9
Pod documented
1954 0 $self->execute_command(qw(PFCOUNT) => @args)
1955 }
1956  
1957 =head2 pfmerge
1958  
1959 Merge N different HyperLogLogs into a single one.
1960  
1961 =over 4
1962  
1963 =item * destkey
1964  
1965 =item * sourcekey [sourcekey ...]
1966  
1967 =back
1968  
1969 L<https://redis.io/commands/pfmerge>
1970  
1971 =cut
1972  
1973 sub pfmerge : method {
1974 0 ▶ my ($self, @args) = @_;
Subroutine pfmerge: not called CC=1 SCAR=6.9
Pod documented
1975 0 $self->execute_command(qw(PFMERGE) => @args)
1976 }
1977  
1978 =head1 METHODS - List
1979  
1980 =head2 blpop
1981  
1982 Remove and get the first element in a list, or block until one is available.
1983  
1984 =over 4
1985  
1986 =item * key [key ...]
1987  
1988 =item * timeout
1989  
1990 =back
1991  
1992 L<https://redis.io/commands/blpop>
1993  
1994 =cut
1995  
1996 sub blpop : method {
1997 0 ▶ my ($self, @args) = @_;
Subroutine blpop: not called CC=1 SCAR=6.9
Pod documented
1998 0 $self->execute_command(qw(BLPOP) => @args)
1999 }
2000  
2001 =head2 brpop
2002  
2003 Remove and get the last element in a list, or block until one is available.
2004  
2005 =over 4
2006  
2007 =item * key [key ...]
2008  
2009 =item * timeout
2010  
2011 =back
2012  
2013 L<https://redis.io/commands/brpop>
2014  
2015 =cut
2016  
2017 sub brpop : method {
2018 0 ▶ my ($self, @args) = @_;
Subroutine brpop: not called CC=1 SCAR=6.9
Pod documented
2019 0 $self->execute_command(qw(BRPOP) => @args)
2020 }
2021  
2022 =head2 brpoplpush
2023  
2024 Pop an element from a list, push it to another list and return it; or block until one is available.
2025  
2026 =over 4
2027  
2028 =item * source
2029  
2030 =item * destination
2031  
2032 =item * timeout
2033  
2034 =back
2035  
2036 L<https://redis.io/commands/brpoplpush>
2037  
2038 =cut
2039  
2040 sub brpoplpush : method {
2041 0 ▶ my ($self, @args) = @_;
Subroutine brpoplpush: not called CC=1 SCAR=6.9
Pod documented
2042 0 $self->execute_command(qw(BRPOPLPUSH) => @args)
2043 }
2044  
2045 =head2 lindex
2046  
2047 Get an element from a list by its index.
2048  
2049 =over 4
2050  
2051 =item * key
2052  
2053 =item * index
2054  
2055 =back
2056  
2057 L<https://redis.io/commands/lindex>
2058  
2059 =cut
2060  
2061 sub lindex : method {
2062 0 ▶ my ($self, @args) = @_;
Subroutine lindex: not called CC=1 SCAR=6.9
Pod documented
2063 0 $self->execute_command(qw(LINDEX) => @args)
2064 }
2065  
2066 =head2 linsert
2067  
2068 Insert an element before or after another element in a list.
2069  
2070 =over 4
2071  
2072 =item * key
2073  
2074 =item * BEFORE|AFTER
2075  
2076 =item * pivot
2077  
2078 =item * element
2079  
2080 =back
2081  
2082 L<https://redis.io/commands/linsert>
2083  
2084 =cut
2085  
2086 sub linsert : method {
2087 0 ▶ my ($self, @args) = @_;
Subroutine linsert: not called CC=1 SCAR=6.9
Pod documented
2088 0 $self->execute_command(qw(LINSERT) => @args)
2089 }
2090  
2091 =head2 llen
2092  
2093 Get the length of a list.
2094  
2095 =over 4
2096  
2097 =item * key
2098  
2099 =back
2100  
2101 L<https://redis.io/commands/llen>
2102  
2103 =cut
2104  
2105 sub llen : method {
2106 0 ▶ my ($self, @args) = @_;
Subroutine llen: not called CC=1 SCAR=6.9
Pod documented
2107 0 $self->execute_command(qw(LLEN) => @args)
2108 }
2109  
2110 =head2 lpop
2111  
2112 Remove and get the first element in a list.
2113  
2114 =over 4
2115  
2116 =item * key
2117  
2118 =back
2119  
2120 L<https://redis.io/commands/lpop>
2121  
2122 =cut
2123  
2124 sub lpop : method {
2125 0 ▶ my ($self, @args) = @_;
Subroutine lpop: not called CC=1 SCAR=6.9
Pod documented
2126 0 $self->execute_command(qw(LPOP) => @args)
2127 }
2128  
2129 =head2 lpush
2130  
2131 Prepend one or multiple elements to a list.
2132  
2133 =over 4
2134  
2135 =item * key
2136  
2137 =item * element [element ...]
2138  
2139 =back
2140  
2141 L<https://redis.io/commands/lpush>
2142  
2143 =cut
2144  
2145 sub lpush : method {
2146 0 ▶ my ($self, @args) = @_;
Subroutine lpush: not called CC=1 SCAR=6.9
Pod documented
2147 0 $self->execute_command(qw(LPUSH) => @args)
2148 }
2149  
2150 =head2 lpushx
2151  
2152 Prepend an element to a list, only if the list exists.
2153  
2154 =over 4
2155  
2156 =item * key
2157  
2158 =item * element [element ...]
2159  
2160 =back
2161  
2162 L<https://redis.io/commands/lpushx>
2163  
2164 =cut
2165  
2166 sub lpushx : method {
2167 0 ▶ my ($self, @args) = @_;
Subroutine lpushx: not called CC=1 SCAR=6.9
Pod documented
2168 0 $self->execute_command(qw(LPUSHX) => @args)
2169 }
2170  
2171 =head2 lrange
2172  
2173 Get a range of elements from a list.
2174  
2175 =over 4
2176  
2177 =item * key
2178  
2179 =item * start
2180  
2181 =item * stop
2182  
2183 =back
2184  
2185 L<https://redis.io/commands/lrange>
2186  
2187 =cut
2188  
2189 sub lrange : method {
2190 0 ▶ my ($self, @args) = @_;
Subroutine lrange: not called CC=1 SCAR=6.9
Pod documented
2191 0 $self->execute_command(qw(LRANGE) => @args)
2192 }
2193  
2194 =head2 lrem
2195  
2196 Remove elements from a list.
2197  
2198 =over 4
2199  
2200 =item * key
2201  
2202 =item * count
2203  
2204 =item * element
2205  
2206 =back
2207  
2208 L<https://redis.io/commands/lrem>
2209  
2210 =cut
2211  
2212 sub lrem : method {
2213 0 ▶ my ($self, @args) = @_;
Subroutine lrem: not called CC=1 SCAR=6.9
Pod documented
2214 0 $self->execute_command(qw(LREM) => @args)
2215 }
2216  
2217 =head2 lset
2218  
2219 Set the value of an element in a list by its index.
2220  
2221 =over 4
2222  
2223 =item * key
2224  
2225 =item * index
2226  
2227 =item * element
2228  
2229 =back
2230  
2231 L<https://redis.io/commands/lset>
2232  
2233 =cut
2234  
2235 sub lset : method {
2236 0 ▶ my ($self, @args) = @_;
Subroutine lset: not called CC=1 SCAR=6.9
Pod documented
2237 0 $self->execute_command(qw(LSET) => @args)
2238 }
2239  
2240 =head2 ltrim
2241  
2242 Trim a list to the specified range.
2243  
2244 =over 4
2245  
2246 =item * key
2247  
2248 =item * start
2249  
2250 =item * stop
2251  
2252 =back
2253  
2254 L<https://redis.io/commands/ltrim>
2255  
2256 =cut
2257  
2258 sub ltrim : method {
2259 0 ▶ my ($self, @args) = @_;
Subroutine ltrim: not called CC=1 SCAR=6.9
Pod documented
2260 0 $self->execute_command(qw(LTRIM) => @args)
2261 }
2262  
2263 =head2 rpop
2264  
2265 Remove and get the last element in a list.
2266  
2267 =over 4
2268  
2269 =item * key
2270  
2271 =back
2272  
2273 L<https://redis.io/commands/rpop>
2274  
2275 =cut
2276  
2277 sub rpop : method {
2278 0 ▶ my ($self, @args) = @_;
Subroutine rpop: not called CC=1 SCAR=6.9
Pod documented
2279 0 $self->execute_command(qw(RPOP) => @args)
2280 }
2281  
2282 =head2 rpoplpush
2283  
2284 Remove the last element in a list, prepend it to another list and return it.
2285  
2286 =over 4
2287  
2288 =item * source
2289  
2290 =item * destination
2291  
2292 =back
2293  
2294 L<https://redis.io/commands/rpoplpush>
2295  
2296 =cut
2297  
2298 sub rpoplpush : method {
2299 0 ▶ my ($self, @args) = @_;
Subroutine rpoplpush: not called CC=1 SCAR=6.9
Pod documented
2300 0 $self->execute_command(qw(RPOPLPUSH) => @args)
2301 }
2302  
2303 =head2 rpush
2304  
2305 Append one or multiple elements to a list.
2306  
2307 =over 4
2308  
2309 =item * key
2310  
2311 =item * element [element ...]
2312  
2313 =back
2314  
2315 L<https://redis.io/commands/rpush>
2316  
2317 =cut
2318  
2319 sub rpush : method {
2320 0 ▶ my ($self, @args) = @_;
Subroutine rpush: not called CC=1 SCAR=6.9
Pod documented
2321 0 $self->execute_command(qw(RPUSH) => @args)
2322 }
2323  
2324 =head2 rpushx
2325  
2326 Append an element to a list, only if the list exists.
2327  
2328 =over 4
2329  
2330 =item * key
2331  
2332 =item * element [element ...]
2333  
2334 =back
2335  
2336 L<https://redis.io/commands/rpushx>
2337  
2338 =cut
2339  
2340 sub rpushx : method {
2341 0 ▶ my ($self, @args) = @_;
Subroutine rpushx: not called CC=1 SCAR=6.9
Pod documented
2342 0 $self->execute_command(qw(RPUSHX) => @args)
2343 }
2344  
2345 =head1 METHODS - Pubsub
2346  
2347 =head2 psubscribe
2348  
2349 Listen for messages published to channels matching the given patterns.
2350  
2351 =over 4
2352  
2353 =item * pattern [pattern ...]
2354  
2355 =back
2356  
2357 L<https://redis.io/commands/psubscribe>
2358  
2359 =cut
2360  
2361 sub psubscribe : method {
2362 0 ▶ my ($self, @args) = @_;
Subroutine psubscribe: not called CC=1 SCAR=6.9
Pod documented
2363 0 $self->execute_command(qw(PSUBSCRIBE) => @args)
2364 }
2365  
2366 =head2 publish
2367  
2368 Post a message to a channel.
2369  
2370 =over 4
2371  
2372 =item * channel
2373  
2374 =item * message
2375  
2376 =back
2377  
2378 L<https://redis.io/commands/publish>
2379  
2380 =cut
2381  
2382 sub publish : method {
2383 0 ▶ my ($self, @args) = @_;
Subroutine publish: not called CC=1 SCAR=6.9
Pod documented
2384 0 $self->execute_command(qw(PUBLISH) => @args)
2385 }
2386  
2387 =head2 pubsub
2388  
2389 Inspect the state of the Pub/Sub subsystem.
2390  
2391 =over 4
2392  
2393 =item * subcommand
2394  
2395 =item * [argument [argument ...]]
2396  
2397 =back
2398  
2399 L<https://redis.io/commands/pubsub>
2400  
2401 =cut
2402  
2403 sub pubsub : method {
2404 0 ▶ my ($self, @args) = @_;
Subroutine pubsub: not called CC=1 SCAR=6.9
Pod documented
2405 0 $self->execute_command(qw(PUBSUB) => @args)
2406 }
2407  
2408 =head2 punsubscribe
2409  
2410 Stop listening for messages posted to channels matching the given patterns.
2411  
2412 =over 4
2413  
2414 =item * [pattern [pattern ...]]
2415  
2416 =back
2417  
2418 L<https://redis.io/commands/punsubscribe>
2419  
2420 =cut
2421  
2422 sub punsubscribe : method {
2423 0 ▶ my ($self, @args) = @_;
Subroutine punsubscribe: not called CC=1 SCAR=6.9
Pod documented
2424 0 $self->execute_command(qw(PUNSUBSCRIBE) => @args)
2425 }
2426  
2427 =head2 subscribe
2428  
2429 Listen for messages published to the given channels.
2430  
2431 =over 4
2432  
2433 =item * channel [channel ...]
2434  
2435 =back
2436  
2437 L<https://redis.io/commands/subscribe>
2438  
2439 =cut
2440  
2441 sub subscribe : method {
2442 0 ▶ my ($self, @args) = @_;
Subroutine subscribe: not called CC=1 SCAR=6.9
Pod documented
2443 0 $self->execute_command(qw(SUBSCRIBE) => @args)
2444 }
2445  
2446 =head2 unsubscribe
2447  
2448 Stop listening for messages posted to the given channels.
2449  
2450 =over 4
2451  
2452 =item * [channel [channel ...]]
2453  
2454 =back
2455  
2456 L<https://redis.io/commands/unsubscribe>
2457  
2458 =cut
2459  
2460 sub unsubscribe : method {
2461 0 ▶ my ($self, @args) = @_;
Subroutine unsubscribe: not called CC=1 SCAR=6.9
Pod documented
2462 0 $self->execute_command(qw(UNSUBSCRIBE) => @args)
2463 }
2464  
2465 =head1 METHODS - Scripting
2466  
2467 =head2 eval
2468  
2469 Execute a Lua script server side.
2470  
2471 =over 4
2472  
2473 =item * script
2474  
2475 =item * numkeys
2476  
2477 =item * key [key ...]
2478  
2479 =item * arg [arg ...]
2480  
2481 =back
2482  
2483 L<https://redis.io/commands/eval>
2484  
2485 =cut
2486  
2487 sub eval : method {
2488 0 ▶ my ($self, @args) = @_;
Subroutine eval: not called CC=1 SCAR=6.9
Pod documented
2489 0 $self->execute_command(qw(EVAL) => @args)
2490 }
2491  
2492 =head2 evalsha
2493  
2494 Execute a Lua script server side.
2495  
2496 =over 4
2497  
2498 =item * sha1
2499  
2500 =item * numkeys
2501  
2502 =item * key [key ...]
2503  
2504 =item * arg [arg ...]
2505  
2506 =back
2507  
2508 L<https://redis.io/commands/evalsha>
2509  
2510 =cut
2511  
2512 sub evalsha : method {
2513 0 ▶ my ($self, @args) = @_;
Subroutine evalsha: not called CC=1 SCAR=6.9
Pod documented
2514 0 $self->execute_command(qw(EVALSHA) => @args)
2515 }
2516  
2517 =head2 script_debug
2518  
2519 Set the debug mode for executed scripts.
2520  
2521 =over 4
2522  
2523 =item * YES|SYNC|NO
2524  
2525 =back
2526  
2527 L<https://redis.io/commands/script-debug>
2528  
2529 =cut
2530  
2531 sub script_debug : method {
2532 0 ▶ my ($self, @args) = @_;
Subroutine script_debug: not called CC=1 SCAR=6.9
Pod documented
2533 0 $self->execute_command(qw(SCRIPT DEBUG) => @args)
2534 }
2535  
2536 =head2 script_exists
2537  
2538 Check existence of scripts in the script cache.
2539  
2540 =over 4
2541  
2542 =item * sha1 [sha1 ...]
2543  
2544 =back
2545  
2546 L<https://redis.io/commands/script-exists>
2547  
2548 =cut
2549  
2550 sub script_exists : method {
2551 0 ▶ my ($self, @args) = @_;
Subroutine script_exists: not called CC=1 SCAR=6.9
Pod documented
2552 0 $self->execute_command(qw(SCRIPT EXISTS) => @args)
2553 }
2554  
2555 =head2 script_flush
2556  
2557 Remove all the scripts from the script cache.
2558  
2559 L<https://redis.io/commands/script-flush>
2560  
2561 =cut
2562  
2563 sub script_flush : method {
2564 0 ▶ my ($self, @args) = @_;
Subroutine script_flush: not called CC=1 SCAR=6.9
Pod documented
2565 0 $self->execute_command(qw(SCRIPT FLUSH) => @args)
2566 }
2567  
2568 =head2 script_kill
2569  
2570 Kill the script currently in execution.
2571  
2572 L<https://redis.io/commands/script-kill>
2573  
2574 =cut
2575  
2576 sub script_kill : method {
2577 0 ▶ my ($self, @args) = @_;
Subroutine script_kill: not called CC=1 SCAR=6.9
Pod documented
2578 0 $self->execute_command(qw(SCRIPT KILL) => @args)
2579 }
2580  
2581 =head2 script_load
2582  
2583 Load the specified Lua script into the script cache.
2584  
2585 =over 4
2586  
2587 =item * script
2588  
2589 =back
2590  
2591 L<https://redis.io/commands/script-load>
2592  
2593 =cut
2594  
2595 sub script_load : method {
2596 0 ▶ my ($self, @args) = @_;
Subroutine script_load: not called CC=1 SCAR=6.9
Pod documented
2597 0 $self->execute_command(qw(SCRIPT LOAD) => @args)
2598 }
2599  
2600 =head1 METHODS - Server
2601  
2602 =head2 acl_cat
2603  
2604 List the ACL categories or the commands inside a category.
2605  
2606 =over 4
2607  
2608 =item * [categoryname]
2609  
2610 =back
2611  
2612 L<https://redis.io/commands/acl-cat>
2613  
2614 =cut
2615  
2616 sub acl_cat : method {
2617 0 ▶ my ($self, @args) = @_;
Subroutine acl_cat: not called CC=1 SCAR=6.9
Pod documented
2618 0 $self->execute_command(qw(ACL CAT) => @args)
2619 }
2620  
2621 =head2 acl_deluser
2622  
2623 Remove the specified ACL users and the associated rules.
2624  
2625 =over 4
2626  
2627 =item * username [username ...]
2628  
2629 =back
2630  
2631 L<https://redis.io/commands/acl-deluser>
2632  
2633 =cut
2634  
2635 sub acl_deluser : method {
2636 0 ▶ my ($self, @args) = @_;
Subroutine acl_deluser: not called CC=1 SCAR=6.9
Pod documented
2637 0 $self->execute_command(qw(ACL DELUSER) => @args)
2638 }
2639  
2640 =head2 acl_genpass
2641  
2642 Generate a pseudorandom secure password to use for ACL users.
2643  
2644 =over 4
2645  
2646 =item * [bits]
2647  
2648 =back
2649  
2650 L<https://redis.io/commands/acl-genpass>
2651  
2652 =cut
2653  
2654 sub acl_genpass : method {
2655 0 ▶ my ($self, @args) = @_;
Subroutine acl_genpass: not called CC=1 SCAR=6.9
Pod documented
2656 0 $self->execute_command(qw(ACL GENPASS) => @args)
2657 }
2658  
2659 =head2 acl_getuser
2660  
2661 Get the rules for a specific ACL user.
2662  
2663 =over 4
2664  
2665 =item * username
2666  
2667 =back
2668  
2669 L<https://redis.io/commands/acl-getuser>
2670  
2671 =cut
2672  
2673 sub acl_getuser : method {
2674 0 ▶ my ($self, @args) = @_;
Subroutine acl_getuser: not called CC=1 SCAR=6.9
Pod documented
2675 0 $self->execute_command(qw(ACL GETUSER) => @args)
2676 }
2677  
2678 =head2 acl_help
2679  
2680 Show helpful text about the different subcommands.
2681  
2682 L<https://redis.io/commands/acl-help>
2683  
2684 =cut
2685  
2686 sub acl_help : method {
2687 0 ▶ my ($self, @args) = @_;
Subroutine acl_help: not called CC=1 SCAR=6.9
Pod documented
2688 0 $self->execute_command(qw(ACL HELP) => @args)
2689 }
2690  
2691 =head2 acl_list
2692  
2693 List the current ACL rules in ACL config file format.
2694  
2695 L<https://redis.io/commands/acl-list>
2696  
2697 =cut
2698  
2699 sub acl_list : method {
2700 0 ▶ my ($self, @args) = @_;
Subroutine acl_list: not called CC=1 SCAR=6.9
Pod documented
2701 0 $self->execute_command(qw(ACL LIST) => @args)
2702 }
2703  
2704 =head2 acl_load
2705  
2706 Reload the ACLs from the configured ACL file.
2707  
2708 L<https://redis.io/commands/acl-load>
2709  
2710 =cut
2711  
2712 sub acl_load : method {
2713 0 ▶ my ($self, @args) = @_;
Subroutine acl_load: not called CC=1 SCAR=6.9
Pod documented
2714 0 $self->execute_command(qw(ACL LOAD) => @args)
2715 }
2716  
2717 =head2 acl_log
2718  
2719 List latest events denied because of ACLs in place.
2720  
2721 =over 4
2722  
2723 =item * [count or RESET]
2724  
2725 =back
2726  
2727 L<https://redis.io/commands/acl-log>
2728  
2729 =cut
2730  
2731 sub acl_log : method {
2732 0 ▶ my ($self, @args) = @_;
Subroutine acl_log: not called CC=1 SCAR=6.9
Pod documented
2733 0 $self->execute_command(qw(ACL LOG) => @args)
2734 }
2735  
2736 =head2 acl_save
2737  
2738 Save the current ACL rules in the configured ACL file.
2739  
2740 L<https://redis.io/commands/acl-save>
2741  
2742 =cut
2743  
2744 sub acl_save : method {
2745 0 ▶ my ($self, @args) = @_;
Subroutine acl_save: not called CC=1 SCAR=6.9
Pod documented
2746 0 $self->execute_command(qw(ACL SAVE) => @args)
2747 }
2748  
2749 =head2 acl_setuser
2750  
2751 Modify or create the rules for a specific ACL user.
2752  
2753 =over 4
2754  
2755 =item * username
2756  
2757 =item * [rule [rule ...]]
2758  
2759 =back
2760  
2761 L<https://redis.io/commands/acl-setuser>
2762  
2763 =cut
2764  
2765 sub acl_setuser : method {
2766 0 ▶ my ($self, @args) = @_;
Subroutine acl_setuser: not called CC=1 SCAR=6.9
Pod documented
2767 0 $self->execute_command(qw(ACL SETUSER) => @args)
2768 }
2769  
2770 =head2 acl_users
2771  
2772 List the username of all the configured ACL rules.
2773  
2774 L<https://redis.io/commands/acl-users>
2775  
2776 =cut
2777  
2778 sub acl_users : method {
2779 0 ▶ my ($self, @args) = @_;
Subroutine acl_users: not called CC=1 SCAR=6.9
Pod documented
2780 0 $self->execute_command(qw(ACL USERS) => @args)
2781 }
2782  
2783 =head2 acl_whoami
2784  
2785 Return the name of the user associated to the current connection.
2786  
2787 L<https://redis.io/commands/acl-whoami>
2788  
2789 =cut
2790  
2791 sub acl_whoami : method {
2792 0 ▶ my ($self, @args) = @_;
Subroutine acl_whoami: not called CC=1 SCAR=6.9
Pod documented
2793 0 $self->execute_command(qw(ACL WHOAMI) => @args)
2794 }
2795  
2796 =head2 bgrewriteaof
2797  
2798 Asynchronously rewrite the append-only file.
2799  
2800 L<https://redis.io/commands/bgrewriteaof>
2801  
2802 =cut
2803  
2804 sub bgrewriteaof : method {
2805 0 ▶ my ($self, @args) = @_;
Subroutine bgrewriteaof: not called CC=1 SCAR=6.9
Pod documented
2806 0 $self->execute_command(qw(BGREWRITEAOF) => @args)
2807 }
2808  
2809 =head2 bgsave
2810  
2811 Asynchronously save the dataset to disk.
2812  
2813 =over 4
2814  
2815 =item * [SCHEDULE]
2816  
2817 =back
2818  
2819 L<https://redis.io/commands/bgsave>
2820  
2821 =cut
2822  
2823 sub bgsave : method {
2824 0 ▶ my ($self, @args) = @_;
Subroutine bgsave: not called CC=1 SCAR=6.9
Pod documented
2825 0 $self->execute_command(qw(BGSAVE) => @args)
2826 }
2827  
2828 =head2 command
2829  
2830 Get array of Redis command details.
2831  
2832 L<https://redis.io/commands/command>
2833  
2834 =cut
2835  
2836 sub command : method {
2837 0 ▶ my ($self, @args) = @_;
Subroutine command: not called CC=1 SCAR=6.9
Pod documented
2838 0 $self->execute_command(qw(COMMAND) => @args)
2839 }
2840  
2841 =head2 command_count
2842  
2843 Get total number of Redis commands.
2844  
2845 L<https://redis.io/commands/command-count>
2846  
2847 =cut
2848  
2849 sub command_count : method {
2850 0 ▶ my ($self, @args) = @_;
Subroutine command_count: not called CC=1 SCAR=6.9
Pod documented
2851 0 $self->execute_command(qw(COMMAND COUNT) => @args)
2852 }
2853  
2854 =head2 command_getkeys
2855  
2856 Extract keys given a full Redis command.
2857  
2858 L<https://redis.io/commands/command-getkeys>
2859  
2860 =cut
2861  
2862 sub command_getkeys : method {
2863 0 ▶ my ($self, @args) = @_;
Subroutine command_getkeys: not called CC=1 SCAR=6.9
Pod documented
2864 0 $self->execute_command(qw(COMMAND GETKEYS) => @args)
2865 }
2866  
2867 =head2 command_info
2868  
2869 Get array of specific Redis command details.
2870  
2871 =over 4
2872  
2873 =item * command-name [command-name ...]
2874  
2875 =back
2876  
2877 L<https://redis.io/commands/command-info>
2878  
2879 =cut
2880  
2881 sub command_info : method {
2882 0 ▶ my ($self, @args) = @_;
Subroutine command_info: not called CC=1 SCAR=6.9
Pod documented
2883 0 $self->execute_command(qw(COMMAND INFO) => @args)
2884 }
2885  
2886 =head2 config_get
2887  
2888 Get the value of a configuration parameter.
2889  
2890 =over 4
2891  
2892 =item * parameter
2893  
2894 =back
2895  
2896 L<https://redis.io/commands/config-get>
2897  
2898 =cut
2899  
2900 sub config_get : method {
2901 0 ▶ my ($self, @args) = @_;
Subroutine config_get: not called CC=1 SCAR=6.9
Pod documented
2902 0 $self->execute_command(qw(CONFIG GET) => @args)
2903 }
2904  
2905 =head2 config_resetstat
2906  
2907 Reset the stats returned by INFO.
2908  
2909 L<https://redis.io/commands/config-resetstat>
2910  
2911 =cut
2912  
2913 sub config_resetstat : method {
2914 0 ▶ my ($self, @args) = @_;
Subroutine config_resetstat: not called CC=1 SCAR=6.9
Pod documented
2915 0 $self->execute_command(qw(CONFIG RESETSTAT) => @args)
2916 }
2917  
2918 =head2 config_rewrite
2919  
2920 Rewrite the configuration file with the in memory configuration.
2921  
2922 L<https://redis.io/commands/config-rewrite>
2923  
2924 =cut
2925  
2926 sub config_rewrite : method {
2927 0 ▶ my ($self, @args) = @_;
Subroutine config_rewrite: not called CC=1 SCAR=6.9
Pod documented
2928 0 $self->execute_command(qw(CONFIG REWRITE) => @args)
2929 }
2930  
2931 =head2 config_set
2932  
2933 Set a configuration parameter to the given value.
2934  
2935 =over 4
2936  
2937 =item * parameter
2938  
2939 =item * value
2940  
2941 =back
2942  
2943 L<https://redis.io/commands/config-set>
2944  
2945 =cut
2946  
2947 sub config_set : method {
2948 0 ▶ my ($self, @args) = @_;
Subroutine config_set: not called CC=1 SCAR=6.9
Pod documented
2949 0 $self->execute_command(qw(CONFIG SET) => @args)
2950 }
2951  
2952 =head2 dbsize
2953  
2954 Return the number of keys in the selected database.
2955  
2956 L<https://redis.io/commands/dbsize>
2957  
2958 =cut
2959  
2960 sub dbsize : method {
2961 0 ▶ my ($self, @args) = @_;
Subroutine dbsize: not called CC=1 SCAR=6.9
Pod documented
2962 0 $self->execute_command(qw(DBSIZE) => @args)
2963 }
2964  
2965 =head2 debug_object
2966  
2967 Get debugging information about a key.
2968  
2969 =over 4
2970  
2971 =item * key
2972  
2973 =back
2974  
2975 L<https://redis.io/commands/debug-object>
2976  
2977 =cut
2978  
2979 sub debug_object : method {
2980 0 ▶ my ($self, @args) = @_;
Subroutine debug_object: not called CC=1 SCAR=6.9
Pod documented
2981 0 $self->execute_command(qw(DEBUG OBJECT) => @args)
2982 }
2983  
2984 =head2 debug_segfault
2985  
2986 Make the server crash.
2987  
2988 L<https://redis.io/commands/debug-segfault>
2989  
2990 =cut
2991  
2992 sub debug_segfault : method {
2993 0 ▶ my ($self, @args) = @_;
Subroutine debug_segfault: not called CC=1 SCAR=6.9
Pod documented
2994 0 $self->execute_command(qw(DEBUG SEGFAULT) => @args)
2995 }
2996  
2997 =head2 flushall
2998  
2999 Remove all keys from all databases.
3000  
3001 =over 4
3002  
3003 =item * [ASYNC]
3004  
3005 =back
3006  
3007 L<https://redis.io/commands/flushall>
3008  
3009 =cut
3010  
3011 sub flushall : method {
3012 0 ▶ my ($self, @args) = @_;
Subroutine flushall: not called CC=1 SCAR=6.9
Pod documented
3013 0 $self->execute_command(qw(FLUSHALL) => @args)
3014 }
3015  
3016 =head2 flushdb
3017  
3018 Remove all keys from the current database.
3019  
3020 =over 4
3021  
3022 =item * [ASYNC]
3023  
3024 =back
3025  
3026 L<https://redis.io/commands/flushdb>
3027  
3028 =cut
3029  
3030 sub flushdb : method {
3031 0 ▶ my ($self, @args) = @_;
Subroutine flushdb: not called CC=1 SCAR=6.9
Pod documented
3032 0 $self->execute_command(qw(FLUSHDB) => @args)
3033 }
3034  
3035 =head2 info
3036  
3037 Get information and statistics about the server.
3038  
3039 =over 4
3040  
3041 =item * [section]
3042  
3043 =back
3044  
3045 L<https://redis.io/commands/info>
3046  
3047 =cut
3048  
3049 sub info : method {
3050 0 ▶ my ($self, @args) = @_;
Subroutine info: not called CC=1 SCAR=6.9
Pod documented
3051 0 $self->execute_command(qw(INFO) => @args)
3052 }
3053  
3054 =head2 lastsave
3055  
3056 Get the UNIX time stamp of the last successful save to disk.
3057  
3058 L<https://redis.io/commands/lastsave>
3059  
3060 =cut
3061  
3062 sub lastsave : method {
3063 0 ▶ my ($self, @args) = @_;
Subroutine lastsave: not called CC=1 SCAR=6.9
Pod documented
3064 0 $self->execute_command(qw(LASTSAVE) => @args)
3065 }
3066  
3067 =head2 latency_doctor
3068  
3069 Return a human readable latency analysis report.
3070  
3071 L<https://redis.io/commands/latency-doctor>
3072  
3073 =cut
3074  
3075 sub latency_doctor : method {
3076 0 ▶ my ($self, @args) = @_;
Subroutine latency_doctor: not called CC=1 SCAR=6.9
Pod documented
3077 0 $self->execute_command(qw(LATENCY DOCTOR) => @args)
3078 }
3079  
3080 =head2 latency_graph
3081  
3082 Return a latency graph for the event.
3083  
3084 =over 4
3085  
3086 =item * event
3087  
3088 =back
3089  
3090 L<https://redis.io/commands/latency-graph>
3091  
3092 =cut
3093  
3094 sub latency_graph : method {
3095 0 ▶ my ($self, @args) = @_;
Subroutine latency_graph: not called CC=1 SCAR=6.9
Pod documented
3096 0 $self->execute_command(qw(LATENCY GRAPH) => @args)
3097 }
3098  
3099 =head2 latency_help
3100  
3101 Show helpful text about the different subcommands.
3102  
3103 L<https://redis.io/commands/latency-help>
3104  
3105 =cut
3106  
3107 sub latency_help : method {
3108 0 ▶ my ($self, @args) = @_;
Subroutine latency_help: not called CC=1 SCAR=6.9
Pod documented
3109 0 $self->execute_command(qw(LATENCY HELP) => @args)
3110 }
3111  
3112 =head2 latency_history
3113  
3114 Return timestamp-latency samples for the event.
3115  
3116 =over 4
3117  
3118 =item * event
3119  
3120 =back
3121  
3122 L<https://redis.io/commands/latency-history>
3123  
3124 =cut
3125  
3126 sub latency_history : method {
3127 0 ▶ my ($self, @args) = @_;
Subroutine latency_history: not called CC=1 SCAR=6.9
Pod documented
3128 0 $self->execute_command(qw(LATENCY HISTORY) => @args)
3129 }
3130  
3131 =head2 latency_latest
3132  
3133 Return the latest latency samples for all events.
3134  
3135 L<https://redis.io/commands/latency-latest>
3136  
3137 =cut
3138  
3139 sub latency_latest : method {
3140 0 ▶ my ($self, @args) = @_;
Subroutine latency_latest: not called CC=1 SCAR=6.9
Pod documented
3141 0 $self->execute_command(qw(LATENCY LATEST) => @args)
3142 }
3143  
3144 =head2 latency_reset
3145  
3146 Reset latency data for one or more events.
3147  
3148 =over 4
3149  
3150 =item * [event]
3151  
3152 =back
3153  
3154 L<https://redis.io/commands/latency-reset>
3155  
3156 =cut
3157  
3158 sub latency_reset : method {
3159 0 ▶ my ($self, @args) = @_;
Subroutine latency_reset: not called CC=1 SCAR=6.9
Pod documented
3160 0 $self->execute_command(qw(LATENCY RESET) => @args)
3161 }
3162  
3163 =head2 lolwut
3164  
3165 Display some computer art and the Redis version.
3166  
3167 =over 4
3168  
3169 =item * [VERSION version]
3170  
3171 =back
3172  
3173 L<https://redis.io/commands/lolwut>
3174  
3175 =cut
3176  
3177 sub lolwut : method {
3178 0 ▶ my ($self, @args) = @_;
Subroutine lolwut: not called CC=1 SCAR=6.9
Pod documented
3179 0 $self->execute_command(qw(LOLWUT) => @args)
3180 }
3181  
3182 =head2 memory_doctor
3183  
3184 Outputs memory problems report.
3185  
3186 L<https://redis.io/commands/memory-doctor>
3187  
3188 =cut
3189  
3190 sub memory_doctor : method {
3191 0 ▶ my ($self, @args) = @_;
Subroutine memory_doctor: not called CC=1 SCAR=6.9
Pod documented
3192 0 $self->execute_command(qw(MEMORY DOCTOR) => @args)
3193 }
3194  
3195 =head2 memory_help
3196  
3197 Show helpful text about the different subcommands.
3198  
3199 L<https://redis.io/commands/memory-help>
3200  
3201 =cut
3202  
3203 sub memory_help : method {
3204 0 ▶ my ($self, @args) = @_;
Subroutine memory_help: not called CC=1 SCAR=6.9
Pod documented
3205 0 $self->execute_command(qw(MEMORY HELP) => @args)
3206 }
3207  
3208 =head2 memory_malloc_stats
3209  
3210 Show allocator internal stats.
3211  
3212 L<https://redis.io/commands/memory-malloc-stats>
3213  
3214 =cut
3215  
3216 sub memory_malloc_stats : method {
3217 0 ▶ my ($self, @args) = @_;
Subroutine memory_malloc_stats: not called CC=1 SCAR=6.9
Pod documented
3218 0 $self->execute_command(qw(MEMORY MALLOC-STATS) => @args)
3219 }
3220  
3221 =head2 memory_purge
3222  
3223 Ask the allocator to release memory.
3224  
3225 L<https://redis.io/commands/memory-purge>
3226  
3227 =cut
3228  
3229 sub memory_purge : method {
3230 0 ▶ my ($self, @args) = @_;
Subroutine memory_purge: not called CC=1 SCAR=6.9
Pod documented
3231 0 $self->execute_command(qw(MEMORY PURGE) => @args)
3232 }
3233  
3234 =head2 memory_stats
3235  
3236 Show memory usage details.
3237  
3238 L<https://redis.io/commands/memory-stats>
3239  
3240 =cut
3241  
3242 sub memory_stats : method {
3243 0 ▶ my ($self, @args) = @_;
Subroutine memory_stats: not called CC=1 SCAR=6.9
Pod documented
3244 0 $self->execute_command(qw(MEMORY STATS) => @args)
3245 }
3246  
3247 =head2 memory_usage
3248  
3249 Estimate the memory usage of a key.
3250  
3251 =over 4
3252  
3253 =item * key
3254  
3255 =item * [SAMPLES count]
3256  
3257 =back
3258  
3259 L<https://redis.io/commands/memory-usage>
3260  
3261 =cut
3262  
3263 sub memory_usage : method {
3264 0 ▶ my ($self, @args) = @_;
Subroutine memory_usage: not called CC=1 SCAR=6.9
Pod documented
3265 0 $self->execute_command(qw(MEMORY USAGE) => @args)
3266 }
3267  
3268 =head2 module_list
3269  
3270 List all modules loaded by the server.
3271  
3272 L<https://redis.io/commands/module-list>
3273  
3274 =cut
3275  
3276 sub module_list : method {
3277 0 ▶ my ($self, @args) = @_;
Subroutine module_list: not called CC=1 SCAR=6.9
Pod documented
3278 0 $self->execute_command(qw(MODULE LIST) => @args)
3279 }
3280  
3281 =head2 module_load
3282  
3283 Load a module.
3284  
3285 =over 4
3286  
3287 =item * path
3288  
3289 =item * [ arg [arg ...]]
3290  
3291 =back
3292  
3293 L<https://redis.io/commands/module-load>
3294  
3295 =cut
3296  
3297 sub module_load : method {
3298 0 ▶ my ($self, @args) = @_;
Subroutine module_load: not called CC=1 SCAR=6.9
Pod documented
3299 0 $self->execute_command(qw(MODULE LOAD) => @args)
3300 }
3301  
3302 =head2 module_unload
3303  
3304 Unload a module.
3305  
3306 =over 4
3307  
3308 =item * name
3309  
3310 =back
3311  
3312 L<https://redis.io/commands/module-unload>
3313  
3314 =cut
3315  
3316 sub module_unload : method {
3317 0 ▶ my ($self, @args) = @_;
Subroutine module_unload: not called CC=1 SCAR=6.9
Pod documented
3318 0 $self->execute_command(qw(MODULE UNLOAD) => @args)
3319 }
3320  
3321 =head2 monitor
3322  
3323 Listen for all requests received by the server in real time.
3324  
3325 L<https://redis.io/commands/monitor>
3326  
3327 =cut
3328  
3329 sub monitor : method {
3330 0 ▶ my ($self, @args) = @_;
Subroutine monitor: not called CC=1 SCAR=6.9
Pod documented
3331 0 $self->execute_command(qw(MONITOR) => @args)
3332 }
3333  
3334 =head2 psync
3335  
3336 Internal command used for replication.
3337  
3338 =over 4
3339  
3340 =item * replicationid
3341  
3342 =item * offset
3343  
3344 =back
3345  
3346 L<https://redis.io/commands/psync>
3347  
3348 =cut
3349  
3350 sub psync : method {
3351 0 ▶ my ($self, @args) = @_;
Subroutine psync: not called CC=1 SCAR=6.9
Pod documented
3352 0 $self->execute_command(qw(PSYNC) => @args)
3353 }
3354  
3355 =head2 replicaof
3356  
3357 Make the server a replica of another instance, or promote it as master.
3358  
3359 =over 4
3360  
3361 =item * host
3362  
3363 =item * port
3364  
3365 =back
3366  
3367 L<https://redis.io/commands/replicaof>
3368  
3369 =cut
3370  
3371 sub replicaof : method {
3372 0 ▶ my ($self, @args) = @_;
Subroutine replicaof: not called CC=1 SCAR=6.9
Pod documented
3373 0 $self->execute_command(qw(REPLICAOF) => @args)
3374 }
3375  
3376 =head2 role
3377  
3378 Return the role of the instance in the context of replication.
3379  
3380 L<https://redis.io/commands/role>
3381  
3382 =cut
3383  
3384 sub role : method {
3385 0 ▶ my ($self, @args) = @_;
Subroutine role: not called CC=1 SCAR=6.9
Pod documented
3386 0 $self->execute_command(qw(ROLE) => @args)
3387 }
3388  
3389 =head2 save
3390  
3391 Synchronously save the dataset to disk.
3392  
3393 L<https://redis.io/commands/save>
3394  
3395 =cut
3396  
3397 sub save : method {
3398 0 ▶ my ($self, @args) = @_;
Subroutine save: not called CC=1 SCAR=6.9
Pod documented
3399 0 $self->execute_command(qw(SAVE) => @args)
3400 }
3401  
3402 =head2 shutdown
3403  
3404 Synchronously save the dataset to disk and then shut down the server.
3405  
3406 =over 4
3407  
3408 =item * [NOSAVE|SAVE]
3409  
3410 =back
3411  
3412 L<https://redis.io/commands/shutdown>
3413  
3414 =cut
3415  
3416 sub shutdown : method {
3417 0 ▶ my ($self, @args) = @_;
Subroutine shutdown: not called CC=1 SCAR=6.9
Pod documented
3418 0 $self->execute_command(qw(SHUTDOWN) => @args)
3419 }
3420  
3421 =head2 slaveof
3422  
3423 Make the server a replica of another instance, or promote it as master. Deprecated starting with Redis 5. Use REPLICAOF instead.
3424  
3425 =over 4
3426  
3427 =item * host
3428  
3429 =item * port
3430  
3431 =back
3432  
3433 L<https://redis.io/commands/slaveof>
3434  
3435 =cut
3436  
3437 sub slaveof : method {
3438 0 ▶ my ($self, @args) = @_;
Subroutine slaveof: not called CC=1 SCAR=6.9
Pod documented
3439 0 $self->execute_command(qw(SLAVEOF) => @args)
3440 }
3441  
3442 =head2 slowlog
3443  
3444 Manages the Redis slow queries log.
3445  
3446 =over 4
3447  
3448 =item * subcommand
3449  
3450 =item * [argument]
3451  
3452 =back
3453  
3454 L<https://redis.io/commands/slowlog>
3455  
3456 =cut
3457  
3458 sub slowlog : method {
3459 0 ▶ my ($self, @args) = @_;
Subroutine slowlog: not called CC=1 SCAR=6.9
Pod documented
3460 0 $self->execute_command(qw(SLOWLOG) => @args)
3461 }
3462  
3463 =head2 swapdb
3464  
3465 Swaps two Redis databases.
3466  
3467 =over 4
3468  
3469 =item * index1
3470  
3471 =item * index2
3472  
3473 =back
3474  
3475 L<https://redis.io/commands/swapdb>
3476  
3477 =cut
3478  
3479 sub swapdb : method {
3480 0 ▶ my ($self, @args) = @_;
Subroutine swapdb: not called CC=1 SCAR=6.9
Pod documented
3481 0 $self->execute_command(qw(SWAPDB) => @args)
3482 }
3483  
3484 =head2 sync
3485  
3486 Internal command used for replication.
3487  
3488 L<https://redis.io/commands/sync>
3489  
3490 =cut
3491  
3492 sub sync : method {
3493 0 ▶ my ($self, @args) = @_;
Subroutine sync: not called CC=1 SCAR=6.9
Pod documented
3494 0 $self->execute_command(qw(SYNC) => @args)
3495 }
3496  
3497 =head2 time
3498  
3499 Return the current server time.
3500  
3501 L<https://redis.io/commands/time>
3502  
3503 =cut
3504  
3505 sub time : method {
3506 0 ▶ my ($self, @args) = @_;
Subroutine time: not called CC=1 SCAR=6.9
Pod documented
3507 0 $self->execute_command(qw(TIME) => @args)
3508 }
3509  
3510 =head1 METHODS - Set
3511  
3512 =head2 sadd
3513  
3514 Add one or more members to a set.
3515  
3516 =over 4
3517  
3518 =item * key
3519  
3520 =item * member [member ...]
3521  
3522 =back
3523  
3524 L<https://redis.io/commands/sadd>
3525  
3526 =cut
3527  
3528 sub sadd : method {
3529 0 ▶ my ($self, @args) = @_;
Subroutine sadd: not called CC=1 SCAR=6.9
Pod documented
3530 0 $self->execute_command(qw(SADD) => @args)
3531 }
3532  
3533 =head2 scard
3534  
3535 Get the number of members in a set.
3536  
3537 =over 4
3538  
3539 =item * key
3540  
3541 =back
3542  
3543 L<https://redis.io/commands/scard>
3544  
3545 =cut
3546  
3547 sub scard : method {
3548 0 ▶ my ($self, @args) = @_;
Subroutine scard: not called CC=1 SCAR=6.9
Pod documented
3549 0 $self->execute_command(qw(SCARD) => @args)
3550 }
3551  
3552 =head2 sdiff
3553  
3554 Subtract multiple sets.
3555  
3556 =over 4
3557  
3558 =item * key [key ...]
3559  
3560 =back
3561  
3562 L<https://redis.io/commands/sdiff>
3563  
3564 =cut
3565  
3566 sub sdiff : method {
3567 0 ▶ my ($self, @args) = @_;
Subroutine sdiff: not called CC=1 SCAR=6.9
Pod documented
3568 0 $self->execute_command(qw(SDIFF) => @args)
3569 }
3570  
3571 =head2 sdiffstore
3572  
3573 Subtract multiple sets and store the resulting set in a key.
3574  
3575 =over 4
3576  
3577 =item * destination
3578  
3579 =item * key [key ...]
3580  
3581 =back
3582  
3583 L<https://redis.io/commands/sdiffstore>
3584  
3585 =cut
3586  
3587 sub sdiffstore : method {
3588 0 ▶ my ($self, @args) = @_;
Subroutine sdiffstore: not called CC=1 SCAR=6.9
Pod documented
3589 0 $self->execute_command(qw(SDIFFSTORE) => @args)
3590 }
3591  
3592 =head2 sinter
3593  
3594 Intersect multiple sets.
3595  
3596 =over 4
3597  
3598 =item * key [key ...]
3599  
3600 =back
3601  
3602 L<https://redis.io/commands/sinter>
3603  
3604 =cut
3605  
3606 sub sinter : method {
3607 0 ▶ my ($self, @args) = @_;
Subroutine sinter: not called CC=1 SCAR=6.9
Pod documented
3608 0 $self->execute_command(qw(SINTER) => @args)
3609 }
3610  
3611 =head2 sinterstore
3612  
3613 Intersect multiple sets and store the resulting set in a key.
3614  
3615 =over 4
3616  
3617 =item * destination
3618  
3619 =item * key [key ...]
3620  
3621 =back
3622  
3623 L<https://redis.io/commands/sinterstore>
3624  
3625 =cut
3626  
3627 sub sinterstore : method {
3628 0 ▶ my ($self, @args) = @_;
Subroutine sinterstore: not called CC=1 SCAR=6.9
Pod documented
3629 0 $self->execute_command(qw(SINTERSTORE) => @args)
3630 }
3631  
3632 =head2 sismember
3633  
3634 Determine if a given value is a member of a set.
3635  
3636 =over 4
3637  
3638 =item * key
3639  
3640 =item * member
3641  
3642 =back
3643  
3644 L<https://redis.io/commands/sismember>
3645  
3646 =cut
3647  
3648 sub sismember : method {
3649 0 ▶ my ($self, @args) = @_;
Subroutine sismember: not called CC=1 SCAR=6.9
Pod documented
3650 0 $self->execute_command(qw(SISMEMBER) => @args)
3651 }
3652  
3653 =head2 smembers
3654  
3655 Get all the members in a set.
3656  
3657 =over 4
3658  
3659 =item * key
3660  
3661 =back
3662  
3663 L<https://redis.io/commands/smembers>
3664  
3665 =cut
3666  
3667 sub smembers : method {
3668 0 ▶ my ($self, @args) = @_;
Subroutine smembers: not called CC=1 SCAR=6.9
Pod documented
3669 0 $self->execute_command(qw(SMEMBERS) => @args)
3670 }
3671  
3672 =head2 smove
3673  
3674 Move a member from one set to another.
3675  
3676 =over 4
3677  
3678 =item * source
3679  
3680 =item * destination
3681  
3682 =item * member
3683  
3684 =back
3685  
3686 L<https://redis.io/commands/smove>
3687  
3688 =cut
3689  
3690 sub smove : method {
3691 0 ▶ my ($self, @args) = @_;
Subroutine smove: not called CC=1 SCAR=6.9
Pod documented
3692 0 $self->execute_command(qw(SMOVE) => @args)
3693 }
3694  
3695 =head2 spop
3696  
3697 Remove and return one or multiple random members from a set.
3698  
3699 =over 4
3700  
3701 =item * key
3702  
3703 =item * [count]
3704  
3705 =back
3706  
3707 L<https://redis.io/commands/spop>
3708  
3709 =cut
3710  
3711 sub spop : method {
3712 0 ▶ my ($self, @args) = @_;
Subroutine spop: not called CC=1 SCAR=6.9
Pod documented
3713 0 $self->execute_command(qw(SPOP) => @args)
3714 }
3715  
3716 =head2 srandmember
3717  
3718 Get one or multiple random members from a set.
3719  
3720 =over 4
3721  
3722 =item * key
3723  
3724 =item * [count]
3725  
3726 =back
3727  
3728 L<https://redis.io/commands/srandmember>
3729  
3730 =cut
3731  
3732 sub srandmember : method {
3733 0 ▶ my ($self, @args) = @_;
Subroutine srandmember: not called CC=1 SCAR=6.9
Pod documented
3734 0 $self->execute_command(qw(SRANDMEMBER) => @args)
3735 }
3736  
3737 =head2 srem
3738  
3739 Remove one or more members from a set.
3740  
3741 =over 4
3742  
3743 =item * key
3744  
3745 =item * member [member ...]
3746  
3747 =back
3748  
3749 L<https://redis.io/commands/srem>
3750  
3751 =cut
3752  
3753 sub srem : method {
3754 0 ▶ my ($self, @args) = @_;
Subroutine srem: not called CC=1 SCAR=6.9
Pod documented
3755 0 $self->execute_command(qw(SREM) => @args)
3756 }
3757  
3758 =head2 sscan
3759  
3760 Incrementally iterate Set elements.
3761  
3762 =over 4
3763  
3764 =item * key
3765  
3766 =item * cursor
3767  
3768 =item * [MATCH pattern]
3769  
3770 =item * [COUNT count]
3771  
3772 =back
3773  
3774 L<https://redis.io/commands/sscan>
3775  
3776 =cut
3777  
3778 sub sscan : method {
3779 0 ▶ my ($self, @args) = @_;
Subroutine sscan: not called CC=1 SCAR=6.9
Pod documented
3780 0 $self->execute_command(qw(SSCAN) => @args)
3781 }
3782  
3783 =head2 sunion
3784  
3785 Add multiple sets.
3786  
3787 =over 4
3788  
3789 =item * key [key ...]
3790  
3791 =back
3792  
3793 L<https://redis.io/commands/sunion>
3794  
3795 =cut
3796  
3797 sub sunion : method {
3798 0 ▶ my ($self, @args) = @_;
Subroutine sunion: not called CC=1 SCAR=6.9
Pod documented
3799 0 $self->execute_command(qw(SUNION) => @args)
3800 }
3801  
3802 =head2 sunionstore
3803  
3804 Add multiple sets and store the resulting set in a key.
3805  
3806 =over 4
3807  
3808 =item * destination
3809  
3810 =item * key [key ...]
3811  
3812 =back
3813  
3814 L<https://redis.io/commands/sunionstore>
3815  
3816 =cut
3817  
3818 sub sunionstore : method {
3819 0 ▶ my ($self, @args) = @_;
Subroutine sunionstore: not called CC=1 SCAR=6.9
Pod documented
3820 0 $self->execute_command(qw(SUNIONSTORE) => @args)
3821 }
3822  
3823 =head1 METHODS - Sorted_set
3824  
3825 =head2 bzpopmax
3826  
3827 Remove and return the member with the highest score from one or more sorted sets, or block until one is available.
3828  
3829 =over 4
3830  
3831 =item * key [key ...]
3832  
3833 =item * timeout
3834  
3835 =back
3836  
3837 L<https://redis.io/commands/bzpopmax>
3838  
3839 =cut
3840  
3841 sub bzpopmax : method {
3842 0 ▶ my ($self, @args) = @_;
Subroutine bzpopmax: not called CC=1 SCAR=6.9
Pod documented
3843 0 $self->execute_command(qw(BZPOPMAX) => @args)
3844 }
3845  
3846 =head2 bzpopmin
3847  
3848 Remove and return the member with the lowest score from one or more sorted sets, or block until one is available.
3849  
3850 =over 4
3851  
3852 =item * key [key ...]
3853  
3854 =item * timeout
3855  
3856 =back
3857  
3858 L<https://redis.io/commands/bzpopmin>
3859  
3860 =cut
3861  
3862 sub bzpopmin : method {
3863 0 ▶ my ($self, @args) = @_;
Subroutine bzpopmin: not called CC=1 SCAR=6.9
Pod documented
3864 0 $self->execute_command(qw(BZPOPMIN) => @args)
3865 }
3866  
3867 =head2 zadd
3868  
3869 Add one or more members to a sorted set, or update its score if it already exists.
3870  
3871 =over 4
3872  
3873 =item * key
3874  
3875 =item * [NX|XX]
3876  
3877 =item * [CH]
3878  
3879 =item * [INCR]
3880  
3881 =item * score member [score member ...]
3882  
3883 =back
3884  
3885 L<https://redis.io/commands/zadd>
3886  
3887 =cut
3888  
3889 sub zadd : method {
3890 0 ▶ my ($self, @args) = @_;
Subroutine zadd: not called CC=1 SCAR=6.9
Pod documented
3891 0 $self->execute_command(qw(ZADD) => @args)
3892 }
3893  
3894 =head2 zcard
3895  
3896 Get the number of members in a sorted set.
3897  
3898 =over 4
3899  
3900 =item * key
3901  
3902 =back
3903  
3904 L<https://redis.io/commands/zcard>
3905  
3906 =cut
3907  
3908 sub zcard : method {
3909 0 ▶ my ($self, @args) = @_;
Subroutine zcard: not called CC=1 SCAR=6.9
Pod documented
3910 0 $self->execute_command(qw(ZCARD) => @args)
3911 }
3912  
3913 =head2 zcount
3914  
3915 Count the members in a sorted set with scores within the given values.
3916  
3917 =over 4
3918  
3919 =item * key
3920  
3921 =item * min
3922  
3923 =item * max
3924  
3925 =back
3926  
3927 L<https://redis.io/commands/zcount>
3928  
3929 =cut
3930  
3931 sub zcount : method {
3932 0 ▶ my ($self, @args) = @_;
Subroutine zcount: not called CC=1 SCAR=6.9
Pod documented
3933 0 $self->execute_command(qw(ZCOUNT) => @args)
3934 }
3935  
3936 =head2 zincrby
3937  
3938 Increment the score of a member in a sorted set.
3939  
3940 =over 4
3941  
3942 =item * key
3943  
3944 =item * increment
3945  
3946 =item * member
3947  
3948 =back
3949  
3950 L<https://redis.io/commands/zincrby>
3951  
3952 =cut
3953  
3954 sub zincrby : method {
3955 0 ▶ my ($self, @args) = @_;
Subroutine zincrby: not called CC=1 SCAR=6.9
Pod documented
3956 0 $self->execute_command(qw(ZINCRBY) => @args)
3957 }
3958  
3959 =head2 zinterstore
3960  
3961 Intersect multiple sorted sets and store the resulting sorted set in a new key.
3962  
3963 =over 4
3964  
3965 =item * destination
3966  
3967 =item * numkeys
3968  
3969 =item * key [key ...]
3970  
3971 =item * [WEIGHTS weight [weight ...]]
3972  
3973 =item * [AGGREGATE SUM|MIN|MAX]
3974  
3975 =back
3976  
3977 L<https://redis.io/commands/zinterstore>
3978  
3979 =cut
3980  
3981 sub zinterstore : method {
3982 0 ▶ my ($self, @args) = @_;
Subroutine zinterstore: not called CC=1 SCAR=6.9
Pod documented
3983 0 $self->execute_command(qw(ZINTERSTORE) => @args)
3984 }
3985  
3986 =head2 zlexcount
3987  
3988 Count the number of members in a sorted set between a given lexicographical range.
3989  
3990 =over 4
3991  
3992 =item * key
3993  
3994 =item * min
3995  
3996 =item * max
3997  
3998 =back
3999  
4000 L<https://redis.io/commands/zlexcount>
4001  
4002 =cut
4003  
4004 sub zlexcount : method {
4005 0 ▶ my ($self, @args) = @_;
Subroutine zlexcount: not called CC=1 SCAR=6.9
Pod documented
4006 0 $self->execute_command(qw(ZLEXCOUNT) => @args)
4007 }
4008  
4009 =head2 zpopmax
4010  
4011 Remove and return members with the highest scores in a sorted set.
4012  
4013 =over 4
4014  
4015 =item * key
4016  
4017 =item * [count]
4018  
4019 =back
4020  
4021 L<https://redis.io/commands/zpopmax>
4022  
4023 =cut
4024  
4025 sub zpopmax : method {
4026 0 ▶ my ($self, @args) = @_;
Subroutine zpopmax: not called CC=1 SCAR=6.9
Pod documented
4027 0 $self->execute_command(qw(ZPOPMAX) => @args)
4028 }
4029  
4030 =head2 zpopmin
4031  
4032 Remove and return members with the lowest scores in a sorted set.
4033  
4034 =over 4
4035  
4036 =item * key
4037  
4038 =item * [count]
4039  
4040 =back
4041  
4042 L<https://redis.io/commands/zpopmin>
4043  
4044 =cut
4045  
4046 sub zpopmin : method {
4047 0 ▶ my ($self, @args) = @_;
Subroutine zpopmin: not called CC=1 SCAR=6.9
Pod documented
4048 0 $self->execute_command(qw(ZPOPMIN) => @args)
4049 }
4050  
4051 =head2 zrange
4052  
4053 Return a range of members in a sorted set, by index.
4054  
4055 =over 4
4056  
4057 =item * key
4058  
4059 =item * start
4060  
4061 =item * stop
4062  
4063 =item * [WITHSCORES]
4064  
4065 =back
4066  
4067 L<https://redis.io/commands/zrange>
4068  
4069 =cut
4070  
4071 sub zrange : method {
4072 0 ▶ my ($self, @args) = @_;
Subroutine zrange: not called CC=1 SCAR=6.9
Pod documented
4073 0 $self->execute_command(qw(ZRANGE) => @args)
4074 }
4075  
4076 =head2 zrangebylex
4077  
4078 Return a range of members in a sorted set, by lexicographical range.
4079  
4080 =over 4
4081  
4082 =item * key
4083  
4084 =item * min
4085  
4086 =item * max
4087  
4088 =item * [LIMIT offset count]
4089  
4090 =back
4091  
4092 L<https://redis.io/commands/zrangebylex>
4093  
4094 =cut
4095  
4096 sub zrangebylex : method {
4097 0 ▶ my ($self, @args) = @_;
Subroutine zrangebylex: not called CC=1 SCAR=6.9
Pod documented
4098 0 $self->execute_command(qw(ZRANGEBYLEX) => @args)
4099 }
4100  
4101 =head2 zrangebyscore
4102  
4103 Return a range of members in a sorted set, by score.
4104  
4105 =over 4
4106  
4107 =item * key
4108  
4109 =item * min
4110  
4111 =item * max
4112  
4113 =item * [WITHSCORES]
4114  
4115 =item * [LIMIT offset count]
4116  
4117 =back
4118  
4119 L<https://redis.io/commands/zrangebyscore>
4120  
4121 =cut
4122  
4123 sub zrangebyscore : method {
4124 0 ▶ my ($self, @args) = @_;
Subroutine zrangebyscore: not called CC=1 SCAR=6.9
Pod documented
4125 0 $self->execute_command(qw(ZRANGEBYSCORE) => @args)
4126 }
4127  
4128 =head2 zrank
4129  
4130 Determine the index of a member in a sorted set.
4131  
4132 =over 4
4133  
4134 =item * key
4135  
4136 =item * member
4137  
4138 =back
4139  
4140 L<https://redis.io/commands/zrank>
4141  
4142 =cut
4143  
4144 sub zrank : method {
4145 0 ▶ my ($self, @args) = @_;
Subroutine zrank: not called CC=1 SCAR=6.9
Pod documented
4146 0 $self->execute_command(qw(ZRANK) => @args)
4147 }
4148  
4149 =head2 zrem
4150  
4151 Remove one or more members from a sorted set.
4152  
4153 =over 4
4154  
4155 =item * key
4156  
4157 =item * member [member ...]
4158  
4159 =back
4160  
4161 L<https://redis.io/commands/zrem>
4162  
4163 =cut
4164  
4165 sub zrem : method {
4166 0 ▶ my ($self, @args) = @_;
Subroutine zrem: not called CC=1 SCAR=6.9
Pod documented
4167 0 $self->execute_command(qw(ZREM) => @args)
4168 }
4169  
4170 =head2 zremrangebylex
4171  
4172 Remove all members in a sorted set between the given lexicographical range.
4173  
4174 =over 4
4175  
4176 =item * key
4177  
4178 =item * min
4179  
4180 =item * max
4181  
4182 =back
4183  
4184 L<https://redis.io/commands/zremrangebylex>
4185  
4186 =cut
4187  
4188 sub zremrangebylex : method {
4189 0 ▶ my ($self, @args) = @_;
Subroutine zremrangebylex: not called CC=1 SCAR=6.9
Pod documented
4190 0 $self->execute_command(qw(ZREMRANGEBYLEX) => @args)
4191 }
4192  
4193 =head2 zremrangebyrank
4194  
4195 Remove all members in a sorted set within the given indexes.
4196  
4197 =over 4
4198  
4199 =item * key
4200  
4201 =item * start
4202  
4203 =item * stop
4204  
4205 =back
4206  
4207 L<https://redis.io/commands/zremrangebyrank>
4208  
4209 =cut
4210  
4211 sub zremrangebyrank : method {
4212 0 ▶ my ($self, @args) = @_;
Subroutine zremrangebyrank: not called CC=1 SCAR=6.9
Pod documented
4213 0 $self->execute_command(qw(ZREMRANGEBYRANK) => @args)
4214 }
4215  
4216 =head2 zremrangebyscore
4217  
4218 Remove all members in a sorted set within the given scores.
4219  
4220 =over 4
4221  
4222 =item * key
4223  
4224 =item * min
4225  
4226 =item * max
4227  
4228 =back
4229  
4230 L<https://redis.io/commands/zremrangebyscore>
4231  
4232 =cut
4233  
4234 sub zremrangebyscore : method {
4235 0 ▶ my ($self, @args) = @_;
Subroutine zremrangebyscore: not called CC=1 SCAR=6.9
Pod documented
4236 0 $self->execute_command(qw(ZREMRANGEBYSCORE) => @args)
4237 }
4238  
4239 =head2 zrevrange
4240  
4241 Return a range of members in a sorted set, by index, with scores ordered from high to low.
4242  
4243 =over 4
4244  
4245 =item * key
4246  
4247 =item * start
4248  
4249 =item * stop
4250  
4251 =item * [WITHSCORES]
4252  
4253 =back
4254  
4255 L<https://redis.io/commands/zrevrange>
4256  
4257 =cut
4258  
4259 sub zrevrange : method {
4260 0 ▶ my ($self, @args) = @_;
Subroutine zrevrange: not called CC=1 SCAR=6.9
Pod documented
4261 0 $self->execute_command(qw(ZREVRANGE) => @args)
4262 }
4263  
4264 =head2 zrevrangebylex
4265  
4266 Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.
4267  
4268 =over 4
4269  
4270 =item * key
4271  
4272 =item * max
4273  
4274 =item * min
4275  
4276 =item * [LIMIT offset count]
4277  
4278 =back
4279  
4280 L<https://redis.io/commands/zrevrangebylex>
4281  
4282 =cut
4283  
4284 sub zrevrangebylex : method {
4285 0 ▶ my ($self, @args) = @_;
Subroutine zrevrangebylex: not called CC=1 SCAR=6.9
Pod documented
4286 0 $self->execute_command(qw(ZREVRANGEBYLEX) => @args)
4287 }
4288  
4289 =head2 zrevrangebyscore
4290  
4291 Return a range of members in a sorted set, by score, with scores ordered from high to low.
4292  
4293 =over 4
4294  
4295 =item * key
4296  
4297 =item * max
4298  
4299 =item * min
4300  
4301 =item * [WITHSCORES]
4302  
4303 =item * [LIMIT offset count]
4304  
4305 =back
4306  
4307 L<https://redis.io/commands/zrevrangebyscore>
4308  
4309 =cut
4310  
4311 sub zrevrangebyscore : method {
4312 0 ▶ my ($self, @args) = @_;
Subroutine zrevrangebyscore: not called CC=1 SCAR=6.9
Pod documented
4313 0 $self->execute_command(qw(ZREVRANGEBYSCORE) => @args)
4314 }
4315  
4316 =head2 zrevrank
4317  
4318 Determine the index of a member in a sorted set, with scores ordered from high to low.
4319  
4320 =over 4
4321  
4322 =item * key
4323  
4324 =item * member
4325  
4326 =back
4327  
4328 L<https://redis.io/commands/zrevrank>
4329  
4330 =cut
4331  
4332 sub zrevrank : method {
4333 0 ▶ my ($self, @args) = @_;
Subroutine zrevrank: not called CC=1 SCAR=6.9
Pod documented
4334 0 $self->execute_command(qw(ZREVRANK) => @args)
4335 }
4336  
4337 =head2 zscan
4338  
4339 Incrementally iterate sorted sets elements and associated scores.
4340  
4341 =over 4
4342  
4343 =item * key
4344  
4345 =item * cursor
4346  
4347 =item * [MATCH pattern]
4348  
4349 =item * [COUNT count]
4350  
4351 =back
4352  
4353 L<https://redis.io/commands/zscan>
4354  
4355 =cut
4356  
4357 sub zscan : method {
4358 0 ▶ my ($self, @args) = @_;
Subroutine zscan: not called CC=1 SCAR=6.9
Pod documented
4359 0 $self->execute_command(qw(ZSCAN) => @args)
4360 }
4361  
4362 =head2 zscore
4363  
4364 Get the score associated with the given member in a sorted set.
4365  
4366 =over 4
4367  
4368 =item * key
4369  
4370 =item * member
4371  
4372 =back
4373  
4374 L<https://redis.io/commands/zscore>
4375  
4376 =cut
4377  
4378 sub zscore : method {
4379 0 ▶ my ($self, @args) = @_;
Subroutine zscore: not called CC=1 SCAR=6.9
Pod documented
4380 0 $self->execute_command(qw(ZSCORE) => @args)
4381 }
4382  
4383 =head2 zunionstore
4384  
4385 Add multiple sorted sets and store the resulting sorted set in a new key.
4386  
4387 =over 4
4388  
4389 =item * destination
4390  
4391 =item * numkeys
4392  
4393 =item * key [key ...]
4394  
4395 =item * [WEIGHTS weight [weight ...]]
4396  
4397 =item * [AGGREGATE SUM|MIN|MAX]
4398  
4399 =back
4400  
4401 L<https://redis.io/commands/zunionstore>
4402  
4403 =cut
4404  
4405 sub zunionstore : method {
4406 0 ▶ my ($self, @args) = @_;
Subroutine zunionstore: not called CC=1 SCAR=6.9
Pod documented
4407 0 $self->execute_command(qw(ZUNIONSTORE) => @args)
4408 }
4409  
4410 =head1 METHODS - Stream
4411  
4412 =head2 xack
4413  
4414 Marks a pending message as correctly processed, effectively removing it from the pending entries list of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, the IDs we were actually able to resolve in the PEL.
4415  
4416 =over 4
4417  
4418 =item * key
4419  
4420 =item * group
4421  
4422 =item * ID [ID ...]
4423  
4424 =back
4425  
4426 L<https://redis.io/commands/xack>
4427  
4428 =cut
4429  
4430 sub xack : method {
4431 0 ▶ my ($self, @args) = @_;
Subroutine xack: not called CC=1 SCAR=6.9
Pod documented
4432 0 $self->execute_command(qw(XACK) => @args)
4433 }
4434  
4435 =head2 xadd
4436  
4437 Appends a new entry to a stream.
4438  
4439 =over 4
4440  
4441 =item * key
4442  
4443 =item * ID
4444  
4445 =item * field value [field value ...]
4446  
4447 =back
4448  
4449 L<https://redis.io/commands/xadd>
4450  
4451 =cut
4452  
4453 sub xadd : method {
4454 0 ▶ my ($self, @args) = @_;
Subroutine xadd: not called CC=1 SCAR=6.9
Pod documented
4455 0 $self->execute_command(qw(XADD) => @args)
4456 }
4457  
4458 =head2 xclaim
4459  
4460 Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.
4461  
4462 =over 4
4463  
4464 =item * key
4465  
4466 =item * group
4467  
4468 =item * consumer
4469  
4470 =item * min-idle-time
4471  
4472 =item * ID [ID ...]
4473  
4474 =item * [IDLE ms]
4475  
4476 =item * [TIME ms-unix-time]
4477  
4478 =item * [RETRYCOUNT count]
4479  
4480 =item * [FORCE]
4481  
4482 =item * [JUSTID]
4483  
4484 =back
4485  
4486 L<https://redis.io/commands/xclaim>
4487  
4488 =cut
4489  
4490 sub xclaim : method {
4491 0 ▶ my ($self, @args) = @_;
Subroutine xclaim: not called CC=1 SCAR=6.9
Pod documented
4492 0 $self->execute_command(qw(XCLAIM) => @args)
4493 }
4494  
4495 =head2 xdel
4496  
4497 Removes the specified entries from the stream. Returns the number of items actually deleted, that may be different from the number of IDs passed in case certain IDs do not exist.
4498  
4499 =over 4
4500  
4501 =item * key
4502  
4503 =item * ID [ID ...]
4504  
4505 =back
4506  
4507 L<https://redis.io/commands/xdel>
4508  
4509 =cut
4510  
4511 sub xdel : method {
4512 0 ▶ my ($self, @args) = @_;
Subroutine xdel: not called CC=1 SCAR=6.9
Pod documented
4513 0 $self->execute_command(qw(XDEL) => @args)
4514 }
4515  
4516 =head2 xgroup
4517  
4518 Create, destroy, and manage consumer groups.
4519  
4520 =over 4
4521  
4522 =item * [CREATE key groupname id-or-$]
4523  
4524 =item * [SETID key groupname id-or-$]
4525  
4526 =item * [DESTROY key groupname]
4527  
4528 =item * [DELCONSUMER key groupname consumername]
4529  
4530 =back
4531  
4532 L<https://redis.io/commands/xgroup>
4533  
4534 =cut
4535  
4536 sub xgroup : method {
4537 0 ▶ my ($self, @args) = @_;
Subroutine xgroup: not called CC=1 SCAR=6.9
Pod documented
4538 0 $self->execute_command(qw(XGROUP) => @args)
4539 }
4540  
4541 =head2 xinfo
4542  
4543 Get information on streams and consumer groups.
4544  
4545 =over 4
4546  
4547 =item * [CONSUMERS key groupname]
4548  
4549 =item * [GROUPS key]
4550  
4551 =item * [STREAM key]
4552  
4553 =item * [HELP]
4554  
4555 =back
4556  
4557 L<https://redis.io/commands/xinfo>
4558  
4559 =cut
4560  
4561 sub xinfo : method {
4562 0 ▶ my ($self, @args) = @_;
Subroutine xinfo: not called CC=1 SCAR=6.9
Pod documented
4563 0 $self->execute_command(qw(XINFO) => @args)
4564 }
4565  
4566 =head2 xlen
4567  
4568 Return the number of entires in a stream.
4569  
4570 =over 4
4571  
4572 =item * key
4573  
4574 =back
4575  
4576 L<https://redis.io/commands/xlen>
4577  
4578 =cut
4579  
4580 sub xlen : method {
4581 0 ▶ my ($self, @args) = @_;
Subroutine xlen: not called CC=1 SCAR=6.9
Pod documented
4582 0 $self->execute_command(qw(XLEN) => @args)
4583 }
4584  
4585 =head2 xpending
4586  
4587 Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.
4588  
4589 =over 4
4590  
4591 =item * key
4592  
4593 =item * group
4594  
4595 =item * [start end count]
4596  
4597 =item * [consumer]
4598  
4599 =back
4600  
4601 L<https://redis.io/commands/xpending>
4602  
4603 =cut
4604  
4605 sub xpending : method {
4606 0 ▶ my ($self, @args) = @_;
Subroutine xpending: not called CC=1 SCAR=6.9
Pod documented
4607 0 $self->execute_command(qw(XPENDING) => @args)
4608 }
4609  
4610 =head2 xrange
4611  
4612 Return a range of elements in a stream, with IDs matching the specified IDs interval.
4613  
4614 =over 4
4615  
4616 =item * key
4617  
4618 =item * start
4619  
4620 =item * end
4621  
4622 =item * [COUNT count]
4623  
4624 =back
4625  
4626 L<https://redis.io/commands/xrange>
4627  
4628 =cut
4629  
4630 sub xrange : method {
4631 0 ▶ my ($self, @args) = @_;
Subroutine xrange: not called CC=1 SCAR=6.9
Pod documented
4632 0 $self->execute_command(qw(XRANGE) => @args)
4633 }
4634  
4635 =head2 xread
4636  
4637 Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.
4638  
4639 =over 4
4640  
4641 =item * [COUNT count]
4642  
4643 =item * [BLOCK milliseconds]
4644  
4645 =item * STREAMS
4646  
4647 =item * key [key ...]
4648  
4649 =item * id [id ...]
4650  
4651 =back
4652  
4653 L<https://redis.io/commands/xread>
4654  
4655 =cut
4656  
4657 sub xread : method {
4658 0 ▶ my ($self, @args) = @_;
Subroutine xread: not called CC=1 SCAR=6.9
Pod documented
4659 0 $self->execute_command(qw(XREAD) => @args)
4660 }
4661  
4662 =head2 xreadgroup
4663  
4664 Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.
4665  
4666 =over 4
4667  
4668 =item * GROUP group consumer
4669  
4670 =item * [COUNT count]
4671  
4672 =item * [BLOCK milliseconds]
4673  
4674 =item * [NOACK]
4675  
4676 =item * STREAMS
4677  
4678 =item * key [key ...]
4679  
4680 =item * ID [ID ...]
4681  
4682 =back
4683  
4684 L<https://redis.io/commands/xreadgroup>
4685  
4686 =cut
4687  
4688 sub xreadgroup : method {
4689 0 ▶ my ($self, @args) = @_;
Subroutine xreadgroup: not called CC=1 SCAR=6.9
Pod documented
4690 0 $self->execute_command(qw(XREADGROUP) => @args)
4691 }
4692  
4693 =head2 xrevrange
4694  
4695 Return a range of elements in a stream, with IDs matching the specified IDs interval, in reverse order (from greater to smaller IDs) compared to XRANGE.
4696  
4697 =over 4
4698  
4699 =item * key
4700  
4701 =item * end
4702  
4703 =item * start
4704  
4705 =item * [COUNT count]
4706  
4707 =back
4708  
4709 L<https://redis.io/commands/xrevrange>
4710  
4711 =cut
4712  
4713 sub xrevrange : method {
4714 0 ▶ my ($self, @args) = @_;
Subroutine xrevrange: not called CC=1 SCAR=6.9
Pod documented
4715 0 $self->execute_command(qw(XREVRANGE) => @args)
4716 }
4717  
4718 =head2 xtrim
4719  
4720 Trims the stream to (approximately if '~' is passed) a certain size.
4721  
4722 =over 4
4723  
4724 =item * key
4725  
4726 =item * MAXLEN
4727  
4728 =item * [~]
4729  
4730 =item * count
4731  
4732 =back
4733  
4734 L<https://redis.io/commands/xtrim>
4735  
4736 =cut
4737  
4738 sub xtrim : method {
4739 0 ▶ my ($self, @args) = @_;
Subroutine xtrim: not called CC=1 SCAR=6.9
Pod documented
4740 0 $self->execute_command(qw(XTRIM) => @args)
4741 }
4742  
4743 =head1 METHODS - String
4744  
4745 =head2 append
4746  
4747 Append a value to a key.
4748  
4749 =over 4
4750  
4751 =item * key
4752  
4753 =item * value
4754  
4755 =back
4756  
4757 L<https://redis.io/commands/append>
4758  
4759 =cut
4760  
4761 sub append : method {
4762 0 ▶ my ($self, @args) = @_;
Subroutine append: not called CC=1 SCAR=6.9
Pod documented
4763 0 $self->execute_command(qw(APPEND) => @args)
4764 }
4765  
4766 =head2 bitcount
4767  
4768 Count set bits in a string.
4769  
4770 =over 4
4771  
4772 =item * key
4773  
4774 =item * [start end]
4775  
4776 =back
4777  
4778 L<https://redis.io/commands/bitcount>
4779  
4780 =cut
4781  
4782 sub bitcount : method {
4783 0 ▶ my ($self, @args) = @_;
Subroutine bitcount: not called CC=1 SCAR=6.9
Pod documented
4784 0 $self->execute_command(qw(BITCOUNT) => @args)
4785 }
4786  
4787 =head2 bitfield
4788  
4789 Perform arbitrary bitfield integer operations on strings.
4790  
4791 =over 4
4792  
4793 =item * key
4794  
4795 =item * [GET type offset]
4796  
4797 =item * [SET type offset value]
4798  
4799 =item * [INCRBY type offset increment]
4800  
4801 =item * [OVERFLOW WRAP|SAT|FAIL]
4802  
4803 =back
4804  
4805 L<https://redis.io/commands/bitfield>
4806  
4807 =cut
4808  
4809 sub bitfield : method {
4810 0 ▶ my ($self, @args) = @_;
Subroutine bitfield: not called CC=1 SCAR=6.9
Pod documented
4811 0 $self->execute_command(qw(BITFIELD) => @args)
4812 }
4813  
4814 =head2 bitop
4815  
4816 Perform bitwise operations between strings.
4817  
4818 =over 4
4819  
4820 =item * operation
4821  
4822 =item * destkey
4823  
4824 =item * key [key ...]
4825  
4826 =back
4827  
4828 L<https://redis.io/commands/bitop>
4829  
4830 =cut
4831  
4832 sub bitop : method {
4833 0 ▶ my ($self, @args) = @_;
Subroutine bitop: not called CC=1 SCAR=6.9
Pod documented
4834 0 $self->execute_command(qw(BITOP) => @args)
4835 }
4836  
4837 =head2 bitpos
4838  
4839 Find first bit set or clear in a string.
4840  
4841 =over 4
4842  
4843 =item * key
4844  
4845 =item * bit
4846  
4847 =item * [start]
4848  
4849 =item * [end]
4850  
4851 =back
4852  
4853 L<https://redis.io/commands/bitpos>
4854  
4855 =cut
4856  
4857 sub bitpos : method {
4858 0 ▶ my ($self, @args) = @_;
Subroutine bitpos: not called CC=1 SCAR=6.9
Pod documented
4859 0 $self->execute_command(qw(BITPOS) => @args)
4860 }
4861  
4862 =head2 decr
4863  
4864 Decrement the integer value of a key by one.
4865  
4866 =over 4
4867  
4868 =item * key
4869  
4870 =back
4871  
4872 L<https://redis.io/commands/decr>
4873  
4874 =cut
4875  
4876 sub decr : method {
4877 0 ▶ my ($self, @args) = @_;
Subroutine decr: not called CC=1 SCAR=6.9
Pod documented
4878 0 $self->execute_command(qw(DECR) => @args)
4879 }
4880  
4881 =head2 decrby
4882  
4883 Decrement the integer value of a key by the given number.
4884  
4885 =over 4
4886  
4887 =item * key
4888  
4889 =item * decrement
4890  
4891 =back
4892  
4893 L<https://redis.io/commands/decrby>
4894  
4895 =cut
4896  
4897 sub decrby : method {
4898 0 ▶ my ($self, @args) = @_;
Subroutine decrby: not called CC=1 SCAR=6.9
Pod documented
4899 0 $self->execute_command(qw(DECRBY) => @args)
4900 }
4901  
4902 =head2 get
4903  
4904 Get the value of a key.
4905  
4906 =over 4
4907  
4908 =item * key
4909  
4910 =back
4911  
4912 L<https://redis.io/commands/get>
4913  
4914 =cut
4915  
4916 sub get : method {
4917 0 ▶ my ($self, @args) = @_;
Subroutine get: not called CC=1 SCAR=6.9
Pod documented
4918 0 $self->execute_command(qw(GET) => @args)
4919 }
4920  
4921 =head2 getbit
4922  
4923 Returns the bit value at offset in the string value stored at key.
4924  
4925 =over 4
4926  
4927 =item * key
4928  
4929 =item * offset
4930  
4931 =back
4932  
4933 L<https://redis.io/commands/getbit>
4934  
4935 =cut
4936  
4937 sub getbit : method {
4938 0 ▶ my ($self, @args) = @_;
Subroutine getbit: not called CC=1 SCAR=6.9
Pod documented
4939 0 $self->execute_command(qw(GETBIT) => @args)
4940 }
4941  
4942 =head2 getrange
4943  
4944 Get a substring of the string stored at a key.
4945  
4946 =over 4
4947  
4948 =item * key
4949  
4950 =item * start
4951  
4952 =item * end
4953  
4954 =back
4955  
4956 L<https://redis.io/commands/getrange>
4957  
4958 =cut
4959  
4960 sub getrange : method {
4961 0 ▶ my ($self, @args) = @_;
Subroutine getrange: not called CC=1 SCAR=6.9
Pod documented
4962 0 $self->execute_command(qw(GETRANGE) => @args)
4963 }
4964  
4965 =head2 getset
4966  
4967 Set the string value of a key and return its old value.
4968  
4969 =over 4
4970  
4971 =item * key
4972  
4973 =item * value
4974  
4975 =back
4976  
4977 L<https://redis.io/commands/getset>
4978  
4979 =cut
4980  
4981 sub getset : method {
4982 0 ▶ my ($self, @args) = @_;
Subroutine getset: not called CC=1 SCAR=6.9
Pod documented
4983 0 $self->execute_command(qw(GETSET) => @args)
4984 }
4985  
4986 =head2 incr
4987  
4988 Increment the integer value of a key by one.
4989  
4990 =over 4
4991  
4992 =item * key
4993  
4994 =back
4995  
4996 L<https://redis.io/commands/incr>
4997  
4998 =cut
4999  
5000 sub incr : method {
5001 0 ▶ my ($self, @args) = @_;
Subroutine incr: not called CC=1 SCAR=6.9
Pod documented
5002 0 $self->execute_command(qw(INCR) => @args)
5003 }
5004  
5005 =head2 incrby
5006  
5007 Increment the integer value of a key by the given amount.
5008  
5009 =over 4
5010  
5011 =item * key
5012  
5013 =item * increment
5014  
5015 =back
5016  
5017 L<https://redis.io/commands/incrby>
5018  
5019 =cut
5020  
5021 sub incrby : method {
5022 0 ▶ my ($self, @args) = @_;
Subroutine incrby: not called CC=1 SCAR=6.9
Pod documented
5023 0 $self->execute_command(qw(INCRBY) => @args)
5024 }
5025  
5026 =head2 incrbyfloat
5027  
5028 Increment the float value of a key by the given amount.
5029  
5030 =over 4
5031  
5032 =item * key
5033  
5034 =item * increment
5035  
5036 =back
5037  
5038 L<https://redis.io/commands/incrbyfloat>
5039  
5040 =cut
5041  
5042 sub incrbyfloat : method {
5043 0 ▶ my ($self, @args) = @_;
Subroutine incrbyfloat: not called CC=1 SCAR=6.9
Pod documented
5044 0 $self->execute_command(qw(INCRBYFLOAT) => @args)
5045 }
5046  
5047 =head2 mget
5048  
5049 Get the values of all the given keys.
5050  
5051 =over 4
5052  
5053 =item * key [key ...]
5054  
5055 =back
5056  
5057 L<https://redis.io/commands/mget>
5058  
5059 =cut
5060  
5061 sub mget : method {
5062 0 ▶ my ($self, @args) = @_;
Subroutine mget: not called CC=1 SCAR=6.9
Pod documented
5063 0 $self->execute_command(qw(MGET) => @args)
5064 }
5065  
5066 =head2 mset
5067  
5068 Set multiple keys to multiple values.
5069  
5070 =over 4
5071  
5072 =item * key value [key value ...]
5073  
5074 =back
5075  
5076 L<https://redis.io/commands/mset>
5077  
5078 =cut
5079  
5080 sub mset : method {
5081 0 ▶ my ($self, @args) = @_;
Subroutine mset: not called CC=1 SCAR=6.9
Pod documented
5082 0 $self->execute_command(qw(MSET) => @args)
5083 }
5084  
5085 =head2 msetnx
5086  
5087 Set multiple keys to multiple values, only if none of the keys exist.
5088  
5089 =over 4
5090  
5091 =item * key value [key value ...]
5092  
5093 =back
5094  
5095 L<https://redis.io/commands/msetnx>
5096  
5097 =cut
5098  
5099 sub msetnx : method {
5100 0 ▶ my ($self, @args) = @_;
Subroutine msetnx: not called CC=1 SCAR=6.9
Pod documented
5101 0 $self->execute_command(qw(MSETNX) => @args)
5102 }
5103  
5104 =head2 psetex
5105  
5106 Set the value and expiration in milliseconds of a key.
5107  
5108 =over 4
5109  
5110 =item * key
5111  
5112 =item * milliseconds
5113  
5114 =item * value
5115  
5116 =back
5117  
5118 L<https://redis.io/commands/psetex>
5119  
5120 =cut
5121  
5122 sub psetex : method {
5123 0 ▶ my ($self, @args) = @_;
Subroutine psetex: not called CC=1 SCAR=6.9
Pod documented
5124 0 $self->execute_command(qw(PSETEX) => @args)
5125 }
5126  
5127 =head2 set
5128  
5129 Set the string value of a key.
5130  
5131 =over 4
5132  
5133 =item * key
5134  
5135 =item * value
5136  
5137 =item * [EX seconds|PX milliseconds]
5138  
5139 =item * [NX|XX]
5140  
5141 =item * [KEEPTTL]
5142  
5143 =back
5144  
5145 L<https://redis.io/commands/set>
5146  
5147 =cut
5148  
5149 sub set : method {
5150 0 ▶ my ($self, @args) = @_;
Subroutine set: not called CC=1 SCAR=6.9
Pod documented
5151 0 $self->execute_command(qw(SET) => @args)
5152 }
5153  
5154 =head2 setbit
5155  
5156 Sets or clears the bit at offset in the string value stored at key.
5157  
5158 =over 4
5159  
5160 =item * key
5161  
5162 =item * offset
5163  
5164 =item * value
5165  
5166 =back
5167  
5168 L<https://redis.io/commands/setbit>
5169  
5170 =cut
5171  
5172 sub setbit : method {
5173 0 ▶ my ($self, @args) = @_;
Subroutine setbit: not called CC=1 SCAR=6.9
Pod documented
5174 0 $self->execute_command(qw(SETBIT) => @args)
5175 }
5176  
5177 =head2 setex
5178  
5179 Set the value and expiration of a key.
5180  
5181 =over 4
5182  
5183 =item * key
5184  
5185 =item * seconds
5186  
5187 =item * value
5188  
5189 =back
5190  
5191 L<https://redis.io/commands/setex>
5192  
5193 =cut
5194  
5195 sub setex : method {
5196 0 ▶ my ($self, @args) = @_;
Subroutine setex: not called CC=1 SCAR=6.9
Pod documented
5197 0 $self->execute_command(qw(SETEX) => @args)
5198 }
5199  
5200 =head2 setnx
5201  
5202 Set the value of a key, only if the key does not exist.
5203  
5204 =over 4
5205  
5206 =item * key
5207  
5208 =item * value
5209  
5210 =back
5211  
5212 L<https://redis.io/commands/setnx>
5213  
5214 =cut
5215  
5216 sub setnx : method {
5217 0 ▶ my ($self, @args) = @_;
Subroutine setnx: not called CC=1 SCAR=6.9
Pod documented
5218 0 $self->execute_command(qw(SETNX) => @args)
5219 }
5220  
5221 =head2 setrange
5222  
5223 Overwrite part of a string at key starting at the specified offset.
5224  
5225 =over 4
5226  
5227 =item * key
5228  
5229 =item * offset
5230  
5231 =item * value
5232  
5233 =back
5234  
5235 L<https://redis.io/commands/setrange>
5236  
5237 =cut
5238  
5239 sub setrange : method {
5240 0 ▶ my ($self, @args) = @_;
Subroutine setrange: not called CC=1 SCAR=6.9
Pod documented
5241 0 $self->execute_command(qw(SETRANGE) => @args)
5242 }
5243  
5244 =head2 stralgo
5245  
5246 Run algorithms (currently LCS) against strings.
5247  
5248 =over 4
5249  
5250 =item * LCS
5251  
5252 =item * algo-specific-argument [algo-specific-argument ...]
5253  
5254 =back
5255  
5256 L<https://redis.io/commands/stralgo>
5257  
5258 =cut
5259  
5260 sub stralgo : method {
5261 0 ▶ my ($self, @args) = @_;
Subroutine stralgo: not called CC=1 SCAR=6.9
Pod documented
5262 0 $self->execute_command(qw(STRALGO) => @args)
5263 }
5264  
5265 =head2 strlen
5266  
5267 Get the length of the value stored in a key.
5268  
5269 =over 4
5270  
5271 =item * key
5272  
5273 =back
5274  
5275 L<https://redis.io/commands/strlen>
5276  
5277 =cut
5278  
5279 sub strlen : method {
5280 0 ▶ my ($self, @args) = @_;
Subroutine strlen: not called CC=1 SCAR=6.9
Pod documented
5281 0 $self->execute_command(qw(STRLEN) => @args)
5282 }
5283  
5284 =head1 METHODS - Transactions
5285  
5286 =head2 discard
5287  
5288 Discard all commands issued after MULTI.
5289  
5290 L<https://redis.io/commands/discard>
5291  
5292 =cut
5293  
5294 sub discard : method {
5295 0 ▶ my ($self, @args) = @_;
Subroutine discard: not called CC=1 SCAR=6.9
Pod documented
5296 0 $self->execute_command(qw(DISCARD) => @args)
5297 }
5298  
5299 =head2 exec
5300  
5301 Execute all commands issued after MULTI.
5302  
5303 L<https://redis.io/commands/exec>
5304  
5305 =cut
5306  
5307 sub exec : method {
5308 0 ▶ my ($self, @args) = @_;
Subroutine exec: not called CC=1 SCAR=6.9
Pod documented
5309 0 $self->execute_command(qw(EXEC) => @args)
5310 }
5311  
5312 =head2 multi
5313  
5314 Mark the start of a transaction block.
5315  
5316 L<https://redis.io/commands/multi>
5317  
5318 =cut
5319  
5320 sub multi : method {
5321 0 ▶ my ($self, @args) = @_;
Subroutine multi: not called CC=1 SCAR=6.9
Pod documented
5322 0 $self->execute_command(qw(MULTI) => @args)
5323 }
5324  
5325 =head2 unwatch
5326  
5327 Forget about all watched keys.
5328  
5329 L<https://redis.io/commands/unwatch>
5330  
5331 =cut
5332  
5333 sub unwatch : method {
5334 0 ▶ my ($self, @args) = @_;
Subroutine unwatch: not called CC=1 SCAR=6.9
Pod documented
5335 0 $self->execute_command(qw(UNWATCH) => @args)
5336 }
5337  
5338 =head2 watch
5339  
5340 Watch the given keys to determine execution of the MULTI/EXEC block.
5341  
5342 =over 4
5343  
5344 =item * key [key ...]
5345  
5346 =back
5347  
5348 L<https://redis.io/commands/watch>
5349  
5350 =cut
5351  
5352 sub watch : method {
5353 0 ▶ my ($self, @args) = @_;
Subroutine watch: not called CC=1 SCAR=6.9
Pod documented
5354 0 $self->execute_command(qw(WATCH) => @args)
5355 }
5356  
5357 12 1;
5358  
5359 __END__
« job-queue.pl ↑ Summary Redis/Server.pm »