Redis/Commands.pm

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