| 1 | package Net::Async::Redis::Commands; | ||
| 2 | |||
| 3 | 16 | ▶ | use Full::Class qw(:v1), extends => 'IO::Async::Notifier'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 16 | our $VERSION = '6.006'; # VERSION | |
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Net::Async::Redis::Commands - mixin that defines the Redis commands available | ||
| 10 | |||
| 11 | =head1 DESCRIPTION | ||
| 12 | |||
| 13 | This is autogenerated from the list of commands available in L<https://redis.io/commands>. | ||
| 14 | |||
| 15 | It is intended to be loaded by L<Net::Async::Redis> to provide methods | ||
| 16 | for each available Redis command. | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | 16 | ▶ | use Dir::Self; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 16 | ▶ | use File::ShareDir (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 16 | ▶ | use YAML::XS (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 16 | ▶ | use Path::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | =head1 PACKAGE VARIABLES | ||
| 26 | |||
| 27 | =head2 KEY_FINDER | ||
| 28 | |||
| 29 | This maps the argument index for the C<key> information in each command. | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | 16 | our %KEY_FINDER = ( | |
| 34 | 'APPEND' => 1, | ||
| 35 | 'BITCOUNT' => 1, | ||
| 36 | 'BITFIELD' => 1, | ||
| 37 | 'BITFIELD RO' => 2, | ||
| 38 | 'BITFIELD_RO' => 1, | ||
| 39 | 'BITOP' => 3, | ||
| 40 | 'BITPOS' => 1, | ||
| 41 | 'BLMPOP' => 3, | ||
| 42 | 'BLPOP' => 1, | ||
| 43 | 'BRPOP' => 1, | ||
| 44 | 'BZMPOP' => 3, | ||
| 45 | 'BZPOPMAX' => 1, | ||
| 46 | 'BZPOPMIN' => 1, | ||
| 47 | 'CLUSTER' => 3, | ||
| 48 | 'CLUSTER KEYSLOT' => 2, | ||
| 49 | 'DECR' => 1, | ||
| 50 | 'DECRBY' => 1, | ||
| 51 | 'DEL' => 1, | ||
| 52 | 'DUMP' => 1, | ||
| 53 | 'EVAL' => 3, | ||
| 54 | 'EVAL RO' => 4, | ||
| 55 | 'EVAL_RO' => 3, | ||
| 56 | 'EVALSHA' => 3, | ||
| 57 | 'EVALSHA RO' => 4, | ||
| 58 | 'EVALSHA_RO' => 3, | ||
| 59 | 'EXISTS' => 1, | ||
| 60 | 'EXPIRE' => 1, | ||
| 61 | 'EXPIREAT' => 1, | ||
| 62 | 'EXPIRETIME' => 1, | ||
| 63 | 'FCALL' => 3, | ||
| 64 | 'FCALL RO' => 4, | ||
| 65 | 'FCALL_RO' => 3, | ||
| 66 | 'GEOADD' => 1, | ||
| 67 | 'GEODIST' => 1, | ||
| 68 | 'GEOHASH' => 1, | ||
| 69 | 'GEOPOS' => 1, | ||
| 70 | 'GEORADIUS' => 1, | ||
| 71 | 'GEORADIUS RO' => 2, | ||
| 72 | 'GEORADIUS_RO' => 1, | ||
| 73 | 'GEORADIUSBYMEMBER' => 1, | ||
| 74 | 'GEORADIUSBYMEMBER RO' => 2, | ||
| 75 | 'GEORADIUSBYMEMBER_RO' => 1, | ||
| 76 | 'GEOSEARCH' => 1, | ||
| 77 | 'GET' => 1, | ||
| 78 | 'GETBIT' => 1, | ||
| 79 | 'GETDEL' => 1, | ||
| 80 | 'GETEX' => 1, | ||
| 81 | 'GETRANGE' => 1, | ||
| 82 | 'GETSET' => 1, | ||
| 83 | 'HDEL' => 1, | ||
| 84 | 'HEXISTS' => 1, | ||
| 85 | 'HGET' => 1, | ||
| 86 | 'HGETALL' => 1, | ||
| 87 | 'HINCRBY' => 1, | ||
| 88 | 'HINCRBYFLOAT' => 1, | ||
| 89 | 'HKEYS' => 1, | ||
| 90 | 'HLEN' => 1, | ||
| 91 | 'HMGET' => 1, | ||
| 92 | 'HMSET' => 1, | ||
| 93 | 'HRANDFIELD' => 1, | ||
| 94 | 'HSCAN' => 1, | ||
| 95 | 'HSET' => 1, | ||
| 96 | 'HSETNX' => 1, | ||
| 97 | 'HSTRLEN' => 1, | ||
| 98 | 'HVALS' => 1, | ||
| 99 | 'INCR' => 1, | ||
| 100 | 'INCRBY' => 1, | ||
| 101 | 'INCRBYFLOAT' => 1, | ||
| 102 | 'LINDEX' => 1, | ||
| 103 | 'LINSERT' => 1, | ||
| 104 | 'LLEN' => 1, | ||
| 105 | 'LMPOP' => 2, | ||
| 106 | 'LPOP' => 1, | ||
| 107 | 'LPOS' => 1, | ||
| 108 | 'LPUSH' => 1, | ||
| 109 | 'LPUSHX' => 1, | ||
| 110 | 'LRANGE' => 1, | ||
| 111 | 'LREM' => 1, | ||
| 112 | 'LSET' => 1, | ||
| 113 | 'LTRIM' => 1, | ||
| 114 | 'MEMORY' => 3, | ||
| 115 | 'MEMORY USAGE' => 2, | ||
| 116 | 'MGET' => 1, | ||
| 117 | 'MIGRATE' => 3, | ||
| 118 | 'MOVE' => 1, | ||
| 119 | 'MSET' => 1, | ||
| 120 | 'MSETNX' => 1, | ||
| 121 | 'OBJECT' => 3, | ||
| 122 | 'OBJECT ENCODING' => 2, | ||
| 123 | 'OBJECT FREQ' => 2, | ||
| 124 | 'OBJECT IDLETIME' => 2, | ||
| 125 | 'OBJECT REFCOUNT' => 2, | ||
| 126 | 'PERSIST' => 1, | ||
| 127 | 'PEXPIRE' => 1, | ||
| 128 | 'PEXPIREAT' => 1, | ||
| 129 | 'PEXPIRETIME' => 1, | ||
| 130 | 'PFADD' => 1, | ||
| 131 | 'PFCOUNT' => 1, | ||
| 132 | 'PSETEX' => 1, | ||
| 133 | 'PSUBSCRIBE' => 1, | ||
| 134 | 'PTTL' => 1, | ||
| 135 | 'PUBLISH' => 1, | ||
| 136 | 'RENAME' => 1, | ||
| 137 | 'RENAMENX' => 1, | ||
| 138 | 'RESTORE' => 1, | ||
| 139 | 'RPOP' => 1, | ||
| 140 | 'RPUSH' => 1, | ||
| 141 | 'RPUSHX' => 1, | ||
| 142 | 'SADD' => 1, | ||
| 143 | 'SCARD' => 1, | ||
| 144 | 'SDIFF' => 1, | ||
| 145 | 'SDIFFSTORE' => 2, | ||
| 146 | 'SET' => 1, | ||
| 147 | 'SETBIT' => 1, | ||
| 148 | 'SETEX' => 1, | ||
| 149 | 'SETNX' => 1, | ||
| 150 | 'SETRANGE' => 1, | ||
| 151 | 'SINTER' => 1, | ||
| 152 | 'SINTERCARD' => 2, | ||
| 153 | 'SINTERSTORE' => 2, | ||
| 154 | 'SISMEMBER' => 1, | ||
| 155 | 'SMEMBERS' => 1, | ||
| 156 | 'SMISMEMBER' => 1, | ||
| 157 | 'SORT' => 1, | ||
| 158 | 'SORT RO' => 2, | ||
| 159 | 'SORT_RO' => 1, | ||
| 160 | 'SPOP' => 1, | ||
| 161 | 'SRANDMEMBER' => 1, | ||
| 162 | 'SREM' => 1, | ||
| 163 | 'SSCAN' => 1, | ||
| 164 | 'STRLEN' => 1, | ||
| 165 | 'SUBSCRIBE' => 1, | ||
| 166 | 'SUBSTR' => 1, | ||
| 167 | 'SUNION' => 1, | ||
| 168 | 'SUNIONSTORE' => 2, | ||
| 169 | 'TOUCH' => 1, | ||
| 170 | 'TTL' => 1, | ||
| 171 | 'TYPE' => 1, | ||
| 172 | 'UNLINK' => 1, | ||
| 173 | 'WATCH' => 1, | ||
| 174 | 'XACK' => 1, | ||
| 175 | 'XADD' => 1, | ||
| 176 | 'XAUTOCLAIM' => 1, | ||
| 177 | 'XCLAIM' => 1, | ||
| 178 | 'XDEL' => 1, | ||
| 179 | 'XGROUP' => 2, | ||
| 180 | 'XGROUP CREATE' => 2, | ||
| 181 | 'XGROUP CREATECONSUMER' => 2, | ||
| 182 | 'XGROUP DELCONSUMER' => 2, | ||
| 183 | 'XGROUP DESTROY' => 2, | ||
| 184 | 'XGROUP SETID' => 2, | ||
| 185 | 'XINFO' => 2, | ||
| 186 | 'XINFO CONSUMERS' => 2, | ||
| 187 | 'XINFO GROUPS' => 2, | ||
| 188 | 'XINFO STREAM' => 2, | ||
| 189 | 'XLEN' => 1, | ||
| 190 | 'XPENDING' => 1, | ||
| 191 | 'XRANGE' => 1, | ||
| 192 | 'XREAD' => 3, | ||
| 193 | 'XREADGROUP' => 5, | ||
| 194 | 'XREVRANGE' => 1, | ||
| 195 | 'XSETID' => 1, | ||
| 196 | 'XTRIM' => 1, | ||
| 197 | 'ZADD' => 1, | ||
| 198 | 'ZCARD' => 1, | ||
| 199 | 'ZCOUNT' => 1, | ||
| 200 | 'ZDIFF' => 2, | ||
| 201 | 'ZDIFFSTORE' => 3, | ||
| 202 | 'ZINCRBY' => 1, | ||
| 203 | 'ZINTER' => 2, | ||
| 204 | 'ZINTERCARD' => 2, | ||
| 205 | 'ZINTERSTORE' => 3, | ||
| 206 | 'ZLEXCOUNT' => 1, | ||
| 207 | 'ZMPOP' => 2, | ||
| 208 | 'ZMSCORE' => 1, | ||
| 209 | 'ZPOPMAX' => 1, | ||
| 210 | 'ZPOPMIN' => 1, | ||
| 211 | 'ZRANDMEMBER' => 1, | ||
| 212 | 'ZRANGE' => 1, | ||
| 213 | 'ZRANGEBYLEX' => 1, | ||
| 214 | 'ZRANGEBYSCORE' => 1, | ||
| 215 | 'ZRANK' => 1, | ||
| 216 | 'ZREM' => 1, | ||
| 217 | 'ZREMRANGEBYLEX' => 1, | ||
| 218 | 'ZREMRANGEBYRANK' => 1, | ||
| 219 | 'ZREMRANGEBYSCORE' => 1, | ||
| 220 | 'ZREVRANGE' => 1, | ||
| 221 | 'ZREVRANGEBYLEX' => 1, | ||
| 222 | 'ZREVRANGEBYSCORE' => 1, | ||
| 223 | 'ZREVRANK' => 1, | ||
| 224 | 'ZSCAN' => 1, | ||
| 225 | 'ZSCORE' => 1, | ||
| 226 | 'ZUNION' => 2, | ||
| 227 | 'ZUNIONSTORE' => 3, | ||
| 228 | ); | ||
| 229 | |||
| 230 | 16 | our %COMMAND_DEFINITION; | |
| 231 | |||
| 232 | UNITCHECK { | ||
| 233 | %COMMAND_DEFINITION = do { | ||
| 234 | my $path = Path::Tiny::path(__DIR__)->parent(3)->child('share/commands.yaml'); | ||
| 235 | $path = Path::Tiny::path( | ||
| 236 | File::ShareDir::dist_file( | ||
| 237 | 'Net-Async-Redis', | ||
| 238 | 'commands.yaml' | ||
| 239 | ) | ||
| 240 | ) unless $path->exists; | ||
| 241 | YAML::XS::LoadFile("$path")->%* | ||
| 242 | }; | ||
| 243 | { # Populate any methods we don't have yet | ||
| 244 | my $class = Object::Pad::MOP::Class->for_class(__PACKAGE__); | ||
| 245 | for my $k (sort keys %COMMAND_DEFINITION) { | ||
| 246 | my $method = $k =~ s/[\.-]+/_/gr; | ||
| 247 | unless(__PACKAGE__->can($method)) { | ||
| 248 | $log->tracef('Adding new Redis method [%s] for %s', $method, $k); | ||
| 249 | 0 | ▶ | $class->add_method($method => sub ($self, @args) { |
|
Subroutine
ts_mrange: not called CC=1 SCAR=6.9
Subroutine
cms_incrby: not called CC=1 SCAR=6.9
Pod
undocumented
Pod
undocumented
| |||
| 250 | 0 | $self->execute_command(split(/_/, $k) => @args) | |
| 251 | }); | ||
| 252 | } | ||
| 253 | } | ||
| 254 | } | ||
| 255 | } | ||
| 256 | |||
| 257 | =head1 METHODS - Bitmap | ||
| 258 | |||
| 259 | =head2 bitcount | ||
| 260 | |||
| 261 | Count set bits in a string. | ||
| 262 | |||
| 263 | =over 4 | ||
| 264 | |||
| 265 | =item * key | ||
| 266 | |||
| 267 | =item * [start end [BYTE|BIT]] | ||
| 268 | |||
| 269 | =back | ||
| 270 | |||
| 271 | L<https://redis.io/commands/bitcount> | ||
| 272 | |||
| 273 | =cut | ||
| 274 | |||
| 275 | 0 | ▶ | method bitcount (@args) { |
|
Subroutine
bitcount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 276 | 0 | $self->execute_command(qw(BITCOUNT) => @args) | |
| 277 | 16 | } | |
| 278 | |||
| 279 | =head2 bitfield | ||
| 280 | |||
| 281 | Perform arbitrary bitfield integer operations on strings. | ||
| 282 | |||
| 283 | =over 4 | ||
| 284 | |||
| 285 | =item * key | ||
| 286 | |||
| 287 | =item * [GET encoding offset] | ||
| 288 | |||
| 289 | =item * [SET encoding offset value] | ||
| 290 | |||
| 291 | =item * [INCRBY encoding offset increment] | ||
| 292 | |||
| 293 | =item * [OVERFLOW WRAP|SAT|FAIL] | ||
| 294 | |||
| 295 | =back | ||
| 296 | |||
| 297 | L<https://redis.io/commands/bitfield> | ||
| 298 | |||
| 299 | =cut | ||
| 300 | |||
| 301 | 0 | ▶ | method bitfield (@args) { |
|
Subroutine
bitfield: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 302 | 0 | $self->execute_command(qw(BITFIELD) => @args) | |
| 303 | 16 | } | |
| 304 | |||
| 305 | =head2 bitfield_ro | ||
| 306 | |||
| 307 | Perform arbitrary bitfield integer operations on strings. Read-only variant of BITFIELD. | ||
| 308 | |||
| 309 | =over 4 | ||
| 310 | |||
| 311 | =item * key | ||
| 312 | |||
| 313 | =item * GET encoding offset | ||
| 314 | |||
| 315 | =back | ||
| 316 | |||
| 317 | L<https://redis.io/commands/bitfield-ro> | ||
| 318 | |||
| 319 | =cut | ||
| 320 | |||
| 321 | 0 | ▶ | method bitfield_ro (@args) { |
|
Subroutine
bitfield_ro: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 322 | 0 | $self->execute_command(qw(BITFIELD_RO) => @args) | |
| 323 | 16 | } | |
| 324 | |||
| 325 | =head2 bitop | ||
| 326 | |||
| 327 | Perform bitwise operations between strings. | ||
| 328 | |||
| 329 | =over 4 | ||
| 330 | |||
| 331 | =item * operation | ||
| 332 | |||
| 333 | =item * destkey | ||
| 334 | |||
| 335 | =item * key [key ...] | ||
| 336 | |||
| 337 | =back | ||
| 338 | |||
| 339 | L<https://redis.io/commands/bitop> | ||
| 340 | |||
| 341 | =cut | ||
| 342 | |||
| 343 | 0 | ▶ | method bitop (@args) { |
|
Subroutine
bitop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 344 | 0 | $self->execute_command(qw(BITOP) => @args) | |
| 345 | 16 | } | |
| 346 | |||
| 347 | =head2 bitpos | ||
| 348 | |||
| 349 | Find first bit set or clear in a string. | ||
| 350 | |||
| 351 | =over 4 | ||
| 352 | |||
| 353 | =item * key | ||
| 354 | |||
| 355 | =item * bit | ||
| 356 | |||
| 357 | =item * [start [end [BYTE|BIT]]] | ||
| 358 | |||
| 359 | =back | ||
| 360 | |||
| 361 | L<https://redis.io/commands/bitpos> | ||
| 362 | |||
| 363 | =cut | ||
| 364 | |||
| 365 | 0 | ▶ | method bitpos (@args) { |
|
Subroutine
bitpos: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 366 | 0 | $self->execute_command(qw(BITPOS) => @args) | |
| 367 | 16 | } | |
| 368 | |||
| 369 | =head2 getbit | ||
| 370 | |||
| 371 | Returns the bit value at offset in the string value stored at key. | ||
| 372 | |||
| 373 | =over 4 | ||
| 374 | |||
| 375 | =item * key | ||
| 376 | |||
| 377 | =item * offset | ||
| 378 | |||
| 379 | =back | ||
| 380 | |||
| 381 | L<https://redis.io/commands/getbit> | ||
| 382 | |||
| 383 | =cut | ||
| 384 | |||
| 385 | 0 | ▶ | method getbit (@args) { |
|
Subroutine
getbit: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 386 | 0 | $self->execute_command(qw(GETBIT) => @args) | |
| 387 | 16 | } | |
| 388 | |||
| 389 | =head2 setbit | ||
| 390 | |||
| 391 | Sets or clears the bit at offset in the string value stored at key. | ||
| 392 | |||
| 393 | =over 4 | ||
| 394 | |||
| 395 | =item * key | ||
| 396 | |||
| 397 | =item * offset | ||
| 398 | |||
| 399 | =item * value | ||
| 400 | |||
| 401 | =back | ||
| 402 | |||
| 403 | L<https://redis.io/commands/setbit> | ||
| 404 | |||
| 405 | =cut | ||
| 406 | |||
| 407 | 0 | ▶ | method setbit (@args) { |
|
Subroutine
setbit: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 408 | 0 | $self->execute_command(qw(SETBIT) => @args) | |
| 409 | 16 | } | |
| 410 | |||
| 411 | =head1 METHODS - Cluster | ||
| 412 | |||
| 413 | =head2 asking | ||
| 414 | |||
| 415 | Sent by cluster clients after an -ASK redirect. | ||
| 416 | |||
| 417 | L<https://redis.io/commands/asking> | ||
| 418 | |||
| 419 | =cut | ||
| 420 | |||
| 421 | 0 | ▶ | method asking (@args) { |
|
Subroutine
asking: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 422 | 0 | $self->execute_command(qw(ASKING) => @args) | |
| 423 | 16 | } | |
| 424 | |||
| 425 | =head2 cluster_addslots | ||
| 426 | |||
| 427 | Assign new hash slots to receiving node. | ||
| 428 | |||
| 429 | =over 4 | ||
| 430 | |||
| 431 | =item * slot [slot ...] | ||
| 432 | |||
| 433 | =back | ||
| 434 | |||
| 435 | L<https://redis.io/commands/cluster-addslots> | ||
| 436 | |||
| 437 | =cut | ||
| 438 | |||
| 439 | 0 | ▶ | method cluster_addslots (@args) { |
|
Subroutine
cluster_addslots: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 440 | 0 | $self->execute_command(qw(CLUSTER ADDSLOTS) => @args) | |
| 441 | 16 | } | |
| 442 | |||
| 443 | =head2 cluster_addslotsrange | ||
| 444 | |||
| 445 | Assign new hash slots to receiving node. | ||
| 446 | |||
| 447 | =over 4 | ||
| 448 | |||
| 449 | =item * start-slot end-slot [start-slot end-slot ...] | ||
| 450 | |||
| 451 | =back | ||
| 452 | |||
| 453 | L<https://redis.io/commands/cluster-addslotsrange> | ||
| 454 | |||
| 455 | =cut | ||
| 456 | |||
| 457 | 0 | ▶ | method cluster_addslotsrange (@args) { |
|
Subroutine
cluster_addslotsrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 458 | 0 | $self->execute_command(qw(CLUSTER ADDSLOTSRANGE) => @args) | |
| 459 | 16 | } | |
| 460 | |||
| 461 | =head2 cluster_bumpepoch | ||
| 462 | |||
| 463 | Advance the cluster config epoch. | ||
| 464 | |||
| 465 | L<https://redis.io/commands/cluster-bumpepoch> | ||
| 466 | |||
| 467 | =cut | ||
| 468 | |||
| 469 | 0 | ▶ | method cluster_bumpepoch (@args) { |
|
Subroutine
cluster_bumpepoch: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 470 | 0 | $self->execute_command(qw(CLUSTER BUMPEPOCH) => @args) | |
| 471 | 16 | } | |
| 472 | |||
| 473 | =head2 cluster_count_failure_reports | ||
| 474 | |||
| 475 | Return the number of failure reports active for a given node. | ||
| 476 | |||
| 477 | =over 4 | ||
| 478 | |||
| 479 | =item * node-id | ||
| 480 | |||
| 481 | =back | ||
| 482 | |||
| 483 | L<https://redis.io/commands/cluster-count-failure-reports> | ||
| 484 | |||
| 485 | =cut | ||
| 486 | |||
| 487 | 0 | ▶ | method cluster_count_failure_reports (@args) { |
|
Subroutine
cluster_count_failure_reports: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 488 | 0 | $self->execute_command(qw(CLUSTER COUNT-FAILURE-REPORTS) => @args) | |
| 489 | 16 | } | |
| 490 | |||
| 491 | =head2 cluster_countkeysinslot | ||
| 492 | |||
| 493 | Return the number of local keys in the specified hash slot. | ||
| 494 | |||
| 495 | =over 4 | ||
| 496 | |||
| 497 | =item * slot | ||
| 498 | |||
| 499 | =back | ||
| 500 | |||
| 501 | L<https://redis.io/commands/cluster-countkeysinslot> | ||
| 502 | |||
| 503 | =cut | ||
| 504 | |||
| 505 | 0 | ▶ | method cluster_countkeysinslot (@args) { |
|
Subroutine
cluster_countkeysinslot: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 506 | 0 | $self->execute_command(qw(CLUSTER COUNTKEYSINSLOT) => @args) | |
| 507 | 16 | } | |
| 508 | |||
| 509 | =head2 cluster_delslots | ||
| 510 | |||
| 511 | Set hash slots as unbound in receiving node. | ||
| 512 | |||
| 513 | =over 4 | ||
| 514 | |||
| 515 | =item * slot [slot ...] | ||
| 516 | |||
| 517 | =back | ||
| 518 | |||
| 519 | L<https://redis.io/commands/cluster-delslots> | ||
| 520 | |||
| 521 | =cut | ||
| 522 | |||
| 523 | 0 | ▶ | method cluster_delslots (@args) { |
|
Subroutine
cluster_delslots: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 524 | 0 | $self->execute_command(qw(CLUSTER DELSLOTS) => @args) | |
| 525 | 16 | } | |
| 526 | |||
| 527 | =head2 cluster_delslotsrange | ||
| 528 | |||
| 529 | Set hash slots as unbound in receiving node. | ||
| 530 | |||
| 531 | =over 4 | ||
| 532 | |||
| 533 | =item * start-slot end-slot [start-slot end-slot ...] | ||
| 534 | |||
| 535 | =back | ||
| 536 | |||
| 537 | L<https://redis.io/commands/cluster-delslotsrange> | ||
| 538 | |||
| 539 | =cut | ||
| 540 | |||
| 541 | 0 | ▶ | method cluster_delslotsrange (@args) { |
|
Subroutine
cluster_delslotsrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 542 | 0 | $self->execute_command(qw(CLUSTER DELSLOTSRANGE) => @args) | |
| 543 | 16 | } | |
| 544 | |||
| 545 | =head2 cluster_failover | ||
| 546 | |||
| 547 | Forces a replica to perform a manual failover of its master. | ||
| 548 | |||
| 549 | =over 4 | ||
| 550 | |||
| 551 | =item * [FORCE|TAKEOVER] | ||
| 552 | |||
| 553 | =back | ||
| 554 | |||
| 555 | L<https://redis.io/commands/cluster-failover> | ||
| 556 | |||
| 557 | =cut | ||
| 558 | |||
| 559 | 0 | ▶ | method cluster_failover (@args) { |
|
Subroutine
cluster_failover: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 560 | 0 | $self->execute_command(qw(CLUSTER FAILOVER) => @args) | |
| 561 | 16 | } | |
| 562 | |||
| 563 | =head2 cluster_flushslots | ||
| 564 | |||
| 565 | Delete a node's own slots information. | ||
| 566 | |||
| 567 | L<https://redis.io/commands/cluster-flushslots> | ||
| 568 | |||
| 569 | =cut | ||
| 570 | |||
| 571 | 0 | ▶ | method cluster_flushslots (@args) { |
|
Subroutine
cluster_flushslots: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 572 | 0 | $self->execute_command(qw(CLUSTER FLUSHSLOTS) => @args) | |
| 573 | 16 | } | |
| 574 | |||
| 575 | =head2 cluster_forget | ||
| 576 | |||
| 577 | Remove a node from the nodes table. | ||
| 578 | |||
| 579 | =over 4 | ||
| 580 | |||
| 581 | =item * node-id | ||
| 582 | |||
| 583 | =back | ||
| 584 | |||
| 585 | L<https://redis.io/commands/cluster-forget> | ||
| 586 | |||
| 587 | =cut | ||
| 588 | |||
| 589 | 0 | ▶ | method cluster_forget (@args) { |
|
Subroutine
cluster_forget: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 590 | 0 | $self->execute_command(qw(CLUSTER FORGET) => @args) | |
| 591 | 16 | } | |
| 592 | |||
| 593 | =head2 cluster_getkeysinslot | ||
| 594 | |||
| 595 | Return local key names in the specified hash slot. | ||
| 596 | |||
| 597 | =over 4 | ||
| 598 | |||
| 599 | =item * slot | ||
| 600 | |||
| 601 | =item * count | ||
| 602 | |||
| 603 | =back | ||
| 604 | |||
| 605 | L<https://redis.io/commands/cluster-getkeysinslot> | ||
| 606 | |||
| 607 | =cut | ||
| 608 | |||
| 609 | 0 | ▶ | method cluster_getkeysinslot (@args) { |
|
Subroutine
cluster_getkeysinslot: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 610 | 0 | $self->execute_command(qw(CLUSTER GETKEYSINSLOT) => @args) | |
| 611 | 16 | } | |
| 612 | |||
| 613 | =head2 cluster_info | ||
| 614 | |||
| 615 | Provides info about Redis Cluster node state. | ||
| 616 | |||
| 617 | L<https://redis.io/commands/cluster-info> | ||
| 618 | |||
| 619 | =cut | ||
| 620 | |||
| 621 | 0 | ▶ | method cluster_info (@args) { |
|
Subroutine
cluster_info: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 622 | 0 | $self->execute_command(qw(CLUSTER INFO) => @args) | |
| 623 | 16 | } | |
| 624 | |||
| 625 | =head2 cluster_keyslot | ||
| 626 | |||
| 627 | Returns the hash slot of the specified key. | ||
| 628 | |||
| 629 | =over 4 | ||
| 630 | |||
| 631 | =item * key | ||
| 632 | |||
| 633 | =back | ||
| 634 | |||
| 635 | L<https://redis.io/commands/cluster-keyslot> | ||
| 636 | |||
| 637 | =cut | ||
| 638 | |||
| 639 | 0 | ▶ | method cluster_keyslot (@args) { |
|
Subroutine
cluster_keyslot: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 640 | 0 | $self->execute_command(qw(CLUSTER KEYSLOT) => @args) | |
| 641 | 16 | } | |
| 642 | |||
| 643 | =head2 cluster_links | ||
| 644 | |||
| 645 | Returns a list of all TCP links to and from peer nodes in cluster. | ||
| 646 | |||
| 647 | L<https://redis.io/commands/cluster-links> | ||
| 648 | |||
| 649 | =cut | ||
| 650 | |||
| 651 | 0 | ▶ | method cluster_links (@args) { |
|
Subroutine
cluster_links: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 652 | 0 | $self->execute_command(qw(CLUSTER LINKS) => @args) | |
| 653 | 16 | } | |
| 654 | |||
| 655 | =head2 cluster_meet | ||
| 656 | |||
| 657 | Force a node cluster to handshake with another node. | ||
| 658 | |||
| 659 | =over 4 | ||
| 660 | |||
| 661 | =item * ip | ||
| 662 | |||
| 663 | =item * port | ||
| 664 | |||
| 665 | =back | ||
| 666 | |||
| 667 | L<https://redis.io/commands/cluster-meet> | ||
| 668 | |||
| 669 | =cut | ||
| 670 | |||
| 671 | 0 | ▶ | method cluster_meet (@args) { |
|
Subroutine
cluster_meet: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 672 | 0 | $self->execute_command(qw(CLUSTER MEET) => @args) | |
| 673 | 16 | } | |
| 674 | |||
| 675 | =head2 cluster_myid | ||
| 676 | |||
| 677 | Return the node id. | ||
| 678 | |||
| 679 | L<https://redis.io/commands/cluster-myid> | ||
| 680 | |||
| 681 | =cut | ||
| 682 | |||
| 683 | 0 | ▶ | method cluster_myid (@args) { |
|
Subroutine
cluster_myid: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 684 | 0 | $self->execute_command(qw(CLUSTER MYID) => @args) | |
| 685 | 16 | } | |
| 686 | |||
| 687 | =head2 cluster_nodes | ||
| 688 | |||
| 689 | Get Cluster config for the node. | ||
| 690 | |||
| 691 | L<https://redis.io/commands/cluster-nodes> | ||
| 692 | |||
| 693 | =cut | ||
| 694 | |||
| 695 | 0 | ▶ | method cluster_nodes (@args) { |
|
Subroutine
cluster_nodes: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 696 | 0 | $self->execute_command(qw(CLUSTER NODES) => @args) | |
| 697 | 16 | } | |
| 698 | |||
| 699 | =head2 cluster_replicas | ||
| 700 | |||
| 701 | List replica nodes of the specified master node. | ||
| 702 | |||
| 703 | =over 4 | ||
| 704 | |||
| 705 | =item * node-id | ||
| 706 | |||
| 707 | =back | ||
| 708 | |||
| 709 | L<https://redis.io/commands/cluster-replicas> | ||
| 710 | |||
| 711 | =cut | ||
| 712 | |||
| 713 | 0 | ▶ | method cluster_replicas (@args) { |
|
Subroutine
cluster_replicas: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 714 | 0 | $self->execute_command(qw(CLUSTER REPLICAS) => @args) | |
| 715 | 16 | } | |
| 716 | |||
| 717 | =head2 cluster_replicate | ||
| 718 | |||
| 719 | Reconfigure a node as a replica of the specified master node. | ||
| 720 | |||
| 721 | =over 4 | ||
| 722 | |||
| 723 | =item * node-id | ||
| 724 | |||
| 725 | =back | ||
| 726 | |||
| 727 | L<https://redis.io/commands/cluster-replicate> | ||
| 728 | |||
| 729 | =cut | ||
| 730 | |||
| 731 | 0 | ▶ | method cluster_replicate (@args) { |
|
Subroutine
cluster_replicate: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 732 | 0 | $self->execute_command(qw(CLUSTER REPLICATE) => @args) | |
| 733 | 16 | } | |
| 734 | |||
| 735 | =head2 cluster_reset | ||
| 736 | |||
| 737 | Reset a Redis Cluster node. | ||
| 738 | |||
| 739 | =over 4 | ||
| 740 | |||
| 741 | =item * [HARD|SOFT] | ||
| 742 | |||
| 743 | =back | ||
| 744 | |||
| 745 | L<https://redis.io/commands/cluster-reset> | ||
| 746 | |||
| 747 | =cut | ||
| 748 | |||
| 749 | 0 | ▶ | method cluster_reset (@args) { |
|
Subroutine
cluster_reset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 750 | 0 | $self->execute_command(qw(CLUSTER RESET) => @args) | |
| 751 | 16 | } | |
| 752 | |||
| 753 | =head2 cluster_saveconfig | ||
| 754 | |||
| 755 | Forces the node to save cluster state on disk. | ||
| 756 | |||
| 757 | L<https://redis.io/commands/cluster-saveconfig> | ||
| 758 | |||
| 759 | =cut | ||
| 760 | |||
| 761 | 0 | ▶ | method cluster_saveconfig (@args) { |
|
Subroutine
cluster_saveconfig: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 762 | 0 | $self->execute_command(qw(CLUSTER SAVECONFIG) => @args) | |
| 763 | 16 | } | |
| 764 | |||
| 765 | =head2 cluster_set_config_epoch | ||
| 766 | |||
| 767 | Set the configuration epoch in a new node. | ||
| 768 | |||
| 769 | =over 4 | ||
| 770 | |||
| 771 | =item * config-epoch | ||
| 772 | |||
| 773 | =back | ||
| 774 | |||
| 775 | L<https://redis.io/commands/cluster-set-config-epoch> | ||
| 776 | |||
| 777 | =cut | ||
| 778 | |||
| 779 | 0 | ▶ | method cluster_set_config_epoch (@args) { |
|
Subroutine
cluster_set_config_epoch: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 780 | 0 | $self->execute_command(qw(CLUSTER SET-CONFIG-EPOCH) => @args) | |
| 781 | 16 | } | |
| 782 | |||
| 783 | =head2 cluster_setslot | ||
| 784 | |||
| 785 | Bind a hash slot to a specific node. | ||
| 786 | |||
| 787 | =over 4 | ||
| 788 | |||
| 789 | =item * slot | ||
| 790 | |||
| 791 | =item * IMPORTING node-id|MIGRATING node-id|NODE node-id|STABLE | ||
| 792 | |||
| 793 | =back | ||
| 794 | |||
| 795 | L<https://redis.io/commands/cluster-setslot> | ||
| 796 | |||
| 797 | =cut | ||
| 798 | |||
| 799 | 0 | ▶ | method cluster_setslot (@args) { |
|
Subroutine
cluster_setslot: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 800 | 0 | $self->execute_command(qw(CLUSTER SETSLOT) => @args) | |
| 801 | 16 | } | |
| 802 | |||
| 803 | =head2 cluster_slaves | ||
| 804 | |||
| 805 | List replica nodes of the specified master node. | ||
| 806 | |||
| 807 | =over 4 | ||
| 808 | |||
| 809 | =item * node-id | ||
| 810 | |||
| 811 | =back | ||
| 812 | |||
| 813 | L<https://redis.io/commands/cluster-slaves> | ||
| 814 | |||
| 815 | =cut | ||
| 816 | |||
| 817 | 0 | ▶ | method cluster_slaves (@args) { |
|
Subroutine
cluster_slaves: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 818 | 0 | $self->execute_command(qw(CLUSTER SLAVES) => @args) | |
| 819 | 16 | } | |
| 820 | |||
| 821 | =head2 cluster_slots | ||
| 822 | |||
| 823 | Get array of Cluster slot to node mappings. | ||
| 824 | |||
| 825 | L<https://redis.io/commands/cluster-slots> | ||
| 826 | |||
| 827 | =cut | ||
| 828 | |||
| 829 | 0 | ▶ | method cluster_slots (@args) { |
|
Subroutine
cluster_slots: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 830 | 0 | $self->execute_command(qw(CLUSTER SLOTS) => @args) | |
| 831 | 16 | } | |
| 832 | |||
| 833 | =head2 readonly | ||
| 834 | |||
| 835 | Enables read queries for a connection to a cluster replica node. | ||
| 836 | |||
| 837 | L<https://redis.io/commands/readonly> | ||
| 838 | |||
| 839 | =cut | ||
| 840 | |||
| 841 | 0 | ▶ | method readonly (@args) { |
|
Subroutine
readonly: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 842 | 0 | $self->execute_command(qw(READONLY) => @args) | |
| 843 | 16 | } | |
| 844 | |||
| 845 | =head2 readwrite | ||
| 846 | |||
| 847 | Disables read queries for a connection to a cluster replica node. | ||
| 848 | |||
| 849 | L<https://redis.io/commands/readwrite> | ||
| 850 | |||
| 851 | =cut | ||
| 852 | |||
| 853 | 0 | ▶ | method readwrite (@args) { |
|
Subroutine
readwrite: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 854 | 0 | $self->execute_command(qw(READWRITE) => @args) | |
| 855 | 16 | } | |
| 856 | |||
| 857 | =head1 METHODS - Connection | ||
| 858 | |||
| 859 | =head2 auth | ||
| 860 | |||
| 861 | Authenticate to the server. | ||
| 862 | |||
| 863 | =over 4 | ||
| 864 | |||
| 865 | =item * [username] | ||
| 866 | |||
| 867 | =item * password | ||
| 868 | |||
| 869 | =back | ||
| 870 | |||
| 871 | L<https://redis.io/commands/auth> | ||
| 872 | |||
| 873 | =cut | ||
| 874 | |||
| 875 | 0 | ▶ | method auth (@args) { |
|
Subroutine
auth: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 876 | 0 | $self->execute_command(qw(AUTH) => @args) | |
| 877 | 16 | } | |
| 878 | |||
| 879 | =head2 client_caching | ||
| 880 | |||
| 881 | Instruct the server about tracking or not keys in the next request. | ||
| 882 | |||
| 883 | =over 4 | ||
| 884 | |||
| 885 | =item * YES|NO | ||
| 886 | |||
| 887 | =back | ||
| 888 | |||
| 889 | L<https://redis.io/commands/client-caching> | ||
| 890 | |||
| 891 | =cut | ||
| 892 | |||
| 893 | 0 | ▶ | method client_caching (@args) { |
|
Subroutine
client_caching: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 894 | 0 | $self->execute_command(qw(CLIENT CACHING) => @args) | |
| 895 | 16 | } | |
| 896 | |||
| 897 | =head2 client_getname | ||
| 898 | |||
| 899 | Get the current connection name. | ||
| 900 | |||
| 901 | L<https://redis.io/commands/client-getname> | ||
| 902 | |||
| 903 | =cut | ||
| 904 | |||
| 905 | 0 | ▶ | method client_getname (@args) { |
|
Subroutine
client_getname: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 906 | 0 | $self->execute_command(qw(CLIENT GETNAME) => @args) | |
| 907 | 16 | } | |
| 908 | |||
| 909 | =head2 client_getredir | ||
| 910 | |||
| 911 | Get tracking notifications redirection client ID if any. | ||
| 912 | |||
| 913 | L<https://redis.io/commands/client-getredir> | ||
| 914 | |||
| 915 | =cut | ||
| 916 | |||
| 917 | 0 | ▶ | method client_getredir (@args) { |
|
Subroutine
client_getredir: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 918 | 0 | $self->execute_command(qw(CLIENT GETREDIR) => @args) | |
| 919 | 16 | } | |
| 920 | |||
| 921 | =head2 client_id | ||
| 922 | |||
| 923 | Returns the client ID for the current connection. | ||
| 924 | |||
| 925 | L<https://redis.io/commands/client-id> | ||
| 926 | |||
| 927 | =cut | ||
| 928 | |||
| 929 | 0 | ▶ | method client_id (@args) { |
|
Subroutine
client_id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 930 | 0 | $self->execute_command(qw(CLIENT ID) => @args) | |
| 931 | 16 | } | |
| 932 | |||
| 933 | =head2 client_info | ||
| 934 | |||
| 935 | Returns information about the current client connection. | ||
| 936 | |||
| 937 | L<https://redis.io/commands/client-info> | ||
| 938 | |||
| 939 | =cut | ||
| 940 | |||
| 941 | 0 | ▶ | method client_info (@args) { |
|
Subroutine
client_info: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 942 | 0 | $self->execute_command(qw(CLIENT INFO) => @args) | |
| 943 | 16 | } | |
| 944 | |||
| 945 | =head2 client_kill | ||
| 946 | |||
| 947 | Kill the connection of a client. | ||
| 948 | |||
| 949 | =over 4 | ||
| 950 | |||
| 951 | =item * [ip:port] | ||
| 952 | |||
| 953 | =item * [ID client-id] | ||
| 954 | |||
| 955 | =item * [TYPE NORMAL|MASTER|SLAVE|REPLICA|PUBSUB] | ||
| 956 | |||
| 957 | =item * [USER username] | ||
| 958 | |||
| 959 | =item * [ADDR ip:port] | ||
| 960 | |||
| 961 | =item * [LADDR ip:port] | ||
| 962 | |||
| 963 | =item * [SKIPME yes/no] | ||
| 964 | |||
| 965 | =back | ||
| 966 | |||
| 967 | L<https://redis.io/commands/client-kill> | ||
| 968 | |||
| 969 | =cut | ||
| 970 | |||
| 971 | 0 | ▶ | method client_kill (@args) { |
|
Subroutine
client_kill: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 972 | 0 | $self->execute_command(qw(CLIENT KILL) => @args) | |
| 973 | 16 | } | |
| 974 | |||
| 975 | =head2 client_list | ||
| 976 | |||
| 977 | Get the list of client connections. | ||
| 978 | |||
| 979 | =over 4 | ||
| 980 | |||
| 981 | =item * [TYPE NORMAL|MASTER|REPLICA|PUBSUB] | ||
| 982 | |||
| 983 | =item * [ID client-id [client-id ...]] | ||
| 984 | |||
| 985 | =back | ||
| 986 | |||
| 987 | L<https://redis.io/commands/client-list> | ||
| 988 | |||
| 989 | =cut | ||
| 990 | |||
| 991 | 0 | ▶ | method client_list (@args) { |
|
Subroutine
client_list: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 992 | 0 | $self->execute_command(qw(CLIENT LIST) => @args) | |
| 993 | 16 | } | |
| 994 | |||
| 995 | =head2 client_no_evict | ||
| 996 | |||
| 997 | Set client eviction mode for the current connection. | ||
| 998 | |||
| 999 | =over 4 | ||
| 1000 | |||
| 1001 | =item * ON|OFF | ||
| 1002 | |||
| 1003 | =back | ||
| 1004 | |||
| 1005 | L<https://redis.io/commands/client-no-evict> | ||
| 1006 | |||
| 1007 | =cut | ||
| 1008 | |||
| 1009 | 0 | ▶ | method client_no_evict (@args) { |
|
Subroutine
client_no_evict: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1010 | 0 | $self->execute_command(qw(CLIENT NO-EVICT) => @args) | |
| 1011 | 16 | } | |
| 1012 | |||
| 1013 | =head2 client_pause | ||
| 1014 | |||
| 1015 | Stop processing commands from clients for some time. | ||
| 1016 | |||
| 1017 | =over 4 | ||
| 1018 | |||
| 1019 | =item * timeout | ||
| 1020 | |||
| 1021 | =item * [WRITE|ALL] | ||
| 1022 | |||
| 1023 | =back | ||
| 1024 | |||
| 1025 | L<https://redis.io/commands/client-pause> | ||
| 1026 | |||
| 1027 | =cut | ||
| 1028 | |||
| 1029 | 0 | ▶ | method client_pause (@args) { |
|
Subroutine
client_pause: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1030 | 0 | $self->execute_command(qw(CLIENT PAUSE) => @args) | |
| 1031 | 16 | } | |
| 1032 | |||
| 1033 | =head2 client_reply | ||
| 1034 | |||
| 1035 | Instruct the server whether to reply to commands. | ||
| 1036 | |||
| 1037 | =over 4 | ||
| 1038 | |||
| 1039 | =item * ON|OFF|SKIP | ||
| 1040 | |||
| 1041 | =back | ||
| 1042 | |||
| 1043 | L<https://redis.io/commands/client-reply> | ||
| 1044 | |||
| 1045 | =cut | ||
| 1046 | |||
| 1047 | 0 | ▶ | method client_reply (@args) { |
|
Subroutine
client_reply: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1048 | 0 | $self->execute_command(qw(CLIENT REPLY) => @args) | |
| 1049 | 16 | } | |
| 1050 | |||
| 1051 | =head2 client_setname | ||
| 1052 | |||
| 1053 | Set the current connection name. | ||
| 1054 | |||
| 1055 | =over 4 | ||
| 1056 | |||
| 1057 | =item * connection-name | ||
| 1058 | |||
| 1059 | =back | ||
| 1060 | |||
| 1061 | L<https://redis.io/commands/client-setname> | ||
| 1062 | |||
| 1063 | =cut | ||
| 1064 | |||
| 1065 | 0 | ▶ | method client_setname (@args) { |
|
Subroutine
client_setname: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1066 | 0 | $self->execute_command(qw(CLIENT SETNAME) => @args) | |
| 1067 | 16 | } | |
| 1068 | |||
| 1069 | =head2 client_tracking | ||
| 1070 | |||
| 1071 | Enable or disable server assisted client side caching support. | ||
| 1072 | |||
| 1073 | =over 4 | ||
| 1074 | |||
| 1075 | =item * ON|OFF | ||
| 1076 | |||
| 1077 | =item * [REDIRECT client-id] | ||
| 1078 | |||
| 1079 | =item * [PREFIX prefix [PREFIX prefix ...]] | ||
| 1080 | |||
| 1081 | =item * [BCAST] | ||
| 1082 | |||
| 1083 | =item * [OPTIN] | ||
| 1084 | |||
| 1085 | =item * [OPTOUT] | ||
| 1086 | |||
| 1087 | =item * [NOLOOP] | ||
| 1088 | |||
| 1089 | =back | ||
| 1090 | |||
| 1091 | L<https://redis.io/commands/client-tracking> | ||
| 1092 | |||
| 1093 | =cut | ||
| 1094 | |||
| 1095 | 0 | ▶ | method client_tracking (@args) { |
|
Subroutine
client_tracking: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1096 | 0 | $self->execute_command(qw(CLIENT TRACKING) => @args) | |
| 1097 | 16 | } | |
| 1098 | |||
| 1099 | =head2 client_trackinginfo | ||
| 1100 | |||
| 1101 | Return information about server assisted client side caching for the current connection. | ||
| 1102 | |||
| 1103 | L<https://redis.io/commands/client-trackinginfo> | ||
| 1104 | |||
| 1105 | =cut | ||
| 1106 | |||
| 1107 | 0 | ▶ | method client_trackinginfo (@args) { |
|
Subroutine
client_trackinginfo: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1108 | 0 | $self->execute_command(qw(CLIENT TRACKINGINFO) => @args) | |
| 1109 | 16 | } | |
| 1110 | |||
| 1111 | =head2 client_unblock | ||
| 1112 | |||
| 1113 | Unblock a client blocked in a blocking command from a different connection. | ||
| 1114 | |||
| 1115 | =over 4 | ||
| 1116 | |||
| 1117 | =item * client-id | ||
| 1118 | |||
| 1119 | =item * [TIMEOUT|ERROR] | ||
| 1120 | |||
| 1121 | =back | ||
| 1122 | |||
| 1123 | L<https://redis.io/commands/client-unblock> | ||
| 1124 | |||
| 1125 | =cut | ||
| 1126 | |||
| 1127 | 0 | ▶ | method client_unblock (@args) { |
|
Subroutine
client_unblock: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1128 | 0 | $self->execute_command(qw(CLIENT UNBLOCK) => @args) | |
| 1129 | 16 | } | |
| 1130 | |||
| 1131 | =head2 client_unpause | ||
| 1132 | |||
| 1133 | Resume processing of clients that were paused. | ||
| 1134 | |||
| 1135 | L<https://redis.io/commands/client-unpause> | ||
| 1136 | |||
| 1137 | =cut | ||
| 1138 | |||
| 1139 | 0 | ▶ | method client_unpause (@args) { |
|
Subroutine
client_unpause: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1140 | 0 | $self->execute_command(qw(CLIENT UNPAUSE) => @args) | |
| 1141 | 16 | } | |
| 1142 | |||
| 1143 | =head2 echo | ||
| 1144 | |||
| 1145 | Echo the given string. | ||
| 1146 | |||
| 1147 | =over 4 | ||
| 1148 | |||
| 1149 | =item * message | ||
| 1150 | |||
| 1151 | =back | ||
| 1152 | |||
| 1153 | L<https://redis.io/commands/echo> | ||
| 1154 | |||
| 1155 | =cut | ||
| 1156 | |||
| 1157 | 0 | ▶ | method echo (@args) { |
|
Subroutine
echo: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1158 | 0 | $self->execute_command(qw(ECHO) => @args) | |
| 1159 | 16 | } | |
| 1160 | |||
| 1161 | =head2 hello | ||
| 1162 | |||
| 1163 | Handshake with Redis. | ||
| 1164 | |||
| 1165 | =over 4 | ||
| 1166 | |||
| 1167 | =item * [protover [AUTH username password] [SETNAME clientname]] | ||
| 1168 | |||
| 1169 | =back | ||
| 1170 | |||
| 1171 | L<https://redis.io/commands/hello> | ||
| 1172 | |||
| 1173 | =cut | ||
| 1174 | |||
| 1175 | 0 | ▶ | method hello (@args) { |
|
Subroutine
hello: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1176 | 0 | $self->execute_command(qw(HELLO) => @args) | |
| 1177 | 16 | } | |
| 1178 | |||
| 1179 | =head2 ping | ||
| 1180 | |||
| 1181 | Ping the server. | ||
| 1182 | |||
| 1183 | =over 4 | ||
| 1184 | |||
| 1185 | =item * [message] | ||
| 1186 | |||
| 1187 | =back | ||
| 1188 | |||
| 1189 | L<https://redis.io/commands/ping> | ||
| 1190 | |||
| 1191 | =cut | ||
| 1192 | |||
| 1193 | 0 | ▶ | method ping (@args) { |
|
Subroutine
ping: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1194 | 0 | $self->execute_command(qw(PING) => @args) | |
| 1195 | 16 | } | |
| 1196 | |||
| 1197 | =head2 quit | ||
| 1198 | |||
| 1199 | Close the connection. | ||
| 1200 | |||
| 1201 | L<https://redis.io/commands/quit> | ||
| 1202 | |||
| 1203 | =cut | ||
| 1204 | |||
| 1205 | 0 | ▶ | method quit (@args) { |
|
Subroutine
quit: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1206 | 0 | $self->execute_command(qw(QUIT) => @args) | |
| 1207 | 16 | } | |
| 1208 | |||
| 1209 | =head2 reset | ||
| 1210 | |||
| 1211 | Reset the connection. | ||
| 1212 | |||
| 1213 | L<https://redis.io/commands/reset> | ||
| 1214 | |||
| 1215 | =cut | ||
| 1216 | |||
| 1217 | 0 | ▶ | method reset (@args) { |
|
Subroutine
reset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1218 | 0 | $self->execute_command(qw(RESET) => @args) | |
| 1219 | 16 | } | |
| 1220 | |||
| 1221 | =head2 select | ||
| 1222 | |||
| 1223 | Change the selected database for the current connection. | ||
| 1224 | |||
| 1225 | =over 4 | ||
| 1226 | |||
| 1227 | =item * index | ||
| 1228 | |||
| 1229 | =back | ||
| 1230 | |||
| 1231 | L<https://redis.io/commands/select> | ||
| 1232 | |||
| 1233 | =cut | ||
| 1234 | |||
| 1235 | 0 | ▶ | method select (@args) { |
|
Subroutine
select: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1236 | 0 | $self->execute_command(qw(SELECT) => @args) | |
| 1237 | 16 | } | |
| 1238 | |||
| 1239 | =head1 METHODS - Generic | ||
| 1240 | |||
| 1241 | =head2 copy | ||
| 1242 | |||
| 1243 | Copy a key. | ||
| 1244 | |||
| 1245 | =over 4 | ||
| 1246 | |||
| 1247 | =item * source | ||
| 1248 | |||
| 1249 | =item * destination | ||
| 1250 | |||
| 1251 | =item * [DB destination-db] | ||
| 1252 | |||
| 1253 | =item * [REPLACE] | ||
| 1254 | |||
| 1255 | =back | ||
| 1256 | |||
| 1257 | L<https://redis.io/commands/copy> | ||
| 1258 | |||
| 1259 | =cut | ||
| 1260 | |||
| 1261 | 0 | ▶ | method copy (@args) { |
|
Subroutine
copy: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1262 | 0 | $self->execute_command(qw(COPY) => @args) | |
| 1263 | 16 | } | |
| 1264 | |||
| 1265 | =head2 del | ||
| 1266 | |||
| 1267 | Delete a key. | ||
| 1268 | |||
| 1269 | =over 4 | ||
| 1270 | |||
| 1271 | =item * key [key ...] | ||
| 1272 | |||
| 1273 | =back | ||
| 1274 | |||
| 1275 | L<https://redis.io/commands/del> | ||
| 1276 | |||
| 1277 | =cut | ||
| 1278 | |||
| 1279 | 0 | ▶ | method del (@args) { |
|
Subroutine
del: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1280 | 0 | $self->execute_command(qw(DEL) => @args) | |
| 1281 | 16 | } | |
| 1282 | |||
| 1283 | =head2 dump | ||
| 1284 | |||
| 1285 | Return a serialized version of the value stored at the specified key. | ||
| 1286 | |||
| 1287 | =over 4 | ||
| 1288 | |||
| 1289 | =item * key | ||
| 1290 | |||
| 1291 | =back | ||
| 1292 | |||
| 1293 | L<https://redis.io/commands/dump> | ||
| 1294 | |||
| 1295 | =cut | ||
| 1296 | |||
| 1297 | 0 | ▶ | method dump (@args) { |
|
Subroutine
dump: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1298 | 0 | $self->execute_command(qw(DUMP) => @args) | |
| 1299 | 16 | } | |
| 1300 | |||
| 1301 | =head2 exists | ||
| 1302 | |||
| 1303 | Determine if a key exists. | ||
| 1304 | |||
| 1305 | =over 4 | ||
| 1306 | |||
| 1307 | =item * key [key ...] | ||
| 1308 | |||
| 1309 | =back | ||
| 1310 | |||
| 1311 | L<https://redis.io/commands/exists> | ||
| 1312 | |||
| 1313 | =cut | ||
| 1314 | |||
| 1315 | 0 | ▶ | method exists (@args) { |
|
Subroutine
exists: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1316 | 0 | $self->execute_command(qw(EXISTS) => @args) | |
| 1317 | 16 | } | |
| 1318 | |||
| 1319 | =head2 expire | ||
| 1320 | |||
| 1321 | Set a key's time to live in seconds. | ||
| 1322 | |||
| 1323 | =over 4 | ||
| 1324 | |||
| 1325 | =item * key | ||
| 1326 | |||
| 1327 | =item * seconds | ||
| 1328 | |||
| 1329 | =item * [NX|XX|GT|LT] | ||
| 1330 | |||
| 1331 | =back | ||
| 1332 | |||
| 1333 | L<https://redis.io/commands/expire> | ||
| 1334 | |||
| 1335 | =cut | ||
| 1336 | |||
| 1337 | 0 | ▶ | method expire (@args) { |
|
Subroutine
expire: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1338 | 0 | $self->execute_command(qw(EXPIRE) => @args) | |
| 1339 | 16 | } | |
| 1340 | |||
| 1341 | =head2 expireat | ||
| 1342 | |||
| 1343 | Set the expiration for a key as a UNIX timestamp. | ||
| 1344 | |||
| 1345 | =over 4 | ||
| 1346 | |||
| 1347 | =item * key | ||
| 1348 | |||
| 1349 | =item * unix-time-seconds | ||
| 1350 | |||
| 1351 | =item * [NX|XX|GT|LT] | ||
| 1352 | |||
| 1353 | =back | ||
| 1354 | |||
| 1355 | L<https://redis.io/commands/expireat> | ||
| 1356 | |||
| 1357 | =cut | ||
| 1358 | |||
| 1359 | 0 | ▶ | method expireat (@args) { |
|
Subroutine
expireat: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1360 | 0 | $self->execute_command(qw(EXPIREAT) => @args) | |
| 1361 | 16 | } | |
| 1362 | |||
| 1363 | =head2 expiretime | ||
| 1364 | |||
| 1365 | Get the expiration Unix timestamp for a key. | ||
| 1366 | |||
| 1367 | =over 4 | ||
| 1368 | |||
| 1369 | =item * key | ||
| 1370 | |||
| 1371 | =back | ||
| 1372 | |||
| 1373 | L<https://redis.io/commands/expiretime> | ||
| 1374 | |||
| 1375 | =cut | ||
| 1376 | |||
| 1377 | 0 | ▶ | method expiretime (@args) { |
|
Subroutine
expiretime: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1378 | 0 | $self->execute_command(qw(EXPIRETIME) => @args) | |
| 1379 | 16 | } | |
| 1380 | |||
| 1381 | =head2 keys | ||
| 1382 | |||
| 1383 | Find all keys matching the given pattern. | ||
| 1384 | |||
| 1385 | =over 4 | ||
| 1386 | |||
| 1387 | =item * pattern | ||
| 1388 | |||
| 1389 | =back | ||
| 1390 | |||
| 1391 | L<https://redis.io/commands/keys> | ||
| 1392 | |||
| 1393 | =cut | ||
| 1394 | |||
| 1395 | 0 | ▶ | method keys (@args) { |
|
Subroutine
keys: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1396 | 0 | $self->execute_command(qw(KEYS) => @args) | |
| 1397 | 16 | } | |
| 1398 | |||
| 1399 | =head2 migrate | ||
| 1400 | |||
| 1401 | Atomically transfer a key from a Redis instance to another one. | ||
| 1402 | |||
| 1403 | =over 4 | ||
| 1404 | |||
| 1405 | =item * host | ||
| 1406 | |||
| 1407 | =item * port | ||
| 1408 | |||
| 1409 | =item * key|"" | ||
| 1410 | |||
| 1411 | =item * destination-db | ||
| 1412 | |||
| 1413 | =item * timeout | ||
| 1414 | |||
| 1415 | =item * [COPY] | ||
| 1416 | |||
| 1417 | =item * [REPLACE] | ||
| 1418 | |||
| 1419 | =item * [AUTH password] | ||
| 1420 | |||
| 1421 | =item * [AUTH2 username password] | ||
| 1422 | |||
| 1423 | =item * [KEYS key [key ...]] | ||
| 1424 | |||
| 1425 | =back | ||
| 1426 | |||
| 1427 | L<https://redis.io/commands/migrate> | ||
| 1428 | |||
| 1429 | =cut | ||
| 1430 | |||
| 1431 | 0 | ▶ | method migrate (@args) { |
|
Subroutine
migrate: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1432 | 0 | $self->execute_command(qw(MIGRATE) => @args) | |
| 1433 | 16 | } | |
| 1434 | |||
| 1435 | =head2 move | ||
| 1436 | |||
| 1437 | Move a key to another database. | ||
| 1438 | |||
| 1439 | =over 4 | ||
| 1440 | |||
| 1441 | =item * key | ||
| 1442 | |||
| 1443 | =item * db | ||
| 1444 | |||
| 1445 | =back | ||
| 1446 | |||
| 1447 | L<https://redis.io/commands/move> | ||
| 1448 | |||
| 1449 | =cut | ||
| 1450 | |||
| 1451 | 0 | ▶ | method move (@args) { |
|
Subroutine
move: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1452 | 0 | $self->execute_command(qw(MOVE) => @args) | |
| 1453 | 16 | } | |
| 1454 | |||
| 1455 | =head2 object_encoding | ||
| 1456 | |||
| 1457 | Inspect the internal encoding of a Redis object. | ||
| 1458 | |||
| 1459 | =over 4 | ||
| 1460 | |||
| 1461 | =item * key | ||
| 1462 | |||
| 1463 | =back | ||
| 1464 | |||
| 1465 | L<https://redis.io/commands/object-encoding> | ||
| 1466 | |||
| 1467 | =cut | ||
| 1468 | |||
| 1469 | 0 | ▶ | method object_encoding (@args) { |
|
Subroutine
object_encoding: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1470 | 0 | $self->execute_command(qw(OBJECT ENCODING) => @args) | |
| 1471 | 16 | } | |
| 1472 | |||
| 1473 | =head2 object_freq | ||
| 1474 | |||
| 1475 | Get the logarithmic access frequency counter of a Redis object. | ||
| 1476 | |||
| 1477 | =over 4 | ||
| 1478 | |||
| 1479 | =item * key | ||
| 1480 | |||
| 1481 | =back | ||
| 1482 | |||
| 1483 | L<https://redis.io/commands/object-freq> | ||
| 1484 | |||
| 1485 | =cut | ||
| 1486 | |||
| 1487 | 0 | ▶ | method object_freq (@args) { |
|
Subroutine
object_freq: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1488 | 0 | $self->execute_command(qw(OBJECT FREQ) => @args) | |
| 1489 | 16 | } | |
| 1490 | |||
| 1491 | =head2 object_idletime | ||
| 1492 | |||
| 1493 | Get the time since a Redis object was last accessed. | ||
| 1494 | |||
| 1495 | =over 4 | ||
| 1496 | |||
| 1497 | =item * key | ||
| 1498 | |||
| 1499 | =back | ||
| 1500 | |||
| 1501 | L<https://redis.io/commands/object-idletime> | ||
| 1502 | |||
| 1503 | =cut | ||
| 1504 | |||
| 1505 | 0 | ▶ | method object_idletime (@args) { |
|
Subroutine
object_idletime: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1506 | 0 | $self->execute_command(qw(OBJECT IDLETIME) => @args) | |
| 1507 | 16 | } | |
| 1508 | |||
| 1509 | =head2 object_refcount | ||
| 1510 | |||
| 1511 | Get the number of references to the value of the key. | ||
| 1512 | |||
| 1513 | =over 4 | ||
| 1514 | |||
| 1515 | =item * key | ||
| 1516 | |||
| 1517 | =back | ||
| 1518 | |||
| 1519 | L<https://redis.io/commands/object-refcount> | ||
| 1520 | |||
| 1521 | =cut | ||
| 1522 | |||
| 1523 | 0 | ▶ | method object_refcount (@args) { |
|
Subroutine
object_refcount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1524 | 0 | $self->execute_command(qw(OBJECT REFCOUNT) => @args) | |
| 1525 | 16 | } | |
| 1526 | |||
| 1527 | =head2 persist | ||
| 1528 | |||
| 1529 | Remove the expiration from a key. | ||
| 1530 | |||
| 1531 | =over 4 | ||
| 1532 | |||
| 1533 | =item * key | ||
| 1534 | |||
| 1535 | =back | ||
| 1536 | |||
| 1537 | L<https://redis.io/commands/persist> | ||
| 1538 | |||
| 1539 | =cut | ||
| 1540 | |||
| 1541 | 0 | ▶ | method persist (@args) { |
|
Subroutine
persist: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1542 | 0 | $self->execute_command(qw(PERSIST) => @args) | |
| 1543 | 16 | } | |
| 1544 | |||
| 1545 | =head2 pexpire | ||
| 1546 | |||
| 1547 | Set a key's time to live in milliseconds. | ||
| 1548 | |||
| 1549 | =over 4 | ||
| 1550 | |||
| 1551 | =item * key | ||
| 1552 | |||
| 1553 | =item * milliseconds | ||
| 1554 | |||
| 1555 | =item * [NX|XX|GT|LT] | ||
| 1556 | |||
| 1557 | =back | ||
| 1558 | |||
| 1559 | L<https://redis.io/commands/pexpire> | ||
| 1560 | |||
| 1561 | =cut | ||
| 1562 | |||
| 1563 | 0 | ▶ | method pexpire (@args) { |
|
Subroutine
pexpire: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1564 | 0 | $self->execute_command(qw(PEXPIRE) => @args) | |
| 1565 | 16 | } | |
| 1566 | |||
| 1567 | =head2 pexpireat | ||
| 1568 | |||
| 1569 | Set the expiration for a key as a UNIX timestamp specified in milliseconds. | ||
| 1570 | |||
| 1571 | =over 4 | ||
| 1572 | |||
| 1573 | =item * key | ||
| 1574 | |||
| 1575 | =item * unix-time-milliseconds | ||
| 1576 | |||
| 1577 | =item * [NX|XX|GT|LT] | ||
| 1578 | |||
| 1579 | =back | ||
| 1580 | |||
| 1581 | L<https://redis.io/commands/pexpireat> | ||
| 1582 | |||
| 1583 | =cut | ||
| 1584 | |||
| 1585 | 0 | ▶ | method pexpireat (@args) { |
|
Subroutine
pexpireat: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1586 | 0 | $self->execute_command(qw(PEXPIREAT) => @args) | |
| 1587 | 16 | } | |
| 1588 | |||
| 1589 | =head2 pexpiretime | ||
| 1590 | |||
| 1591 | Get the expiration Unix timestamp for a key in milliseconds. | ||
| 1592 | |||
| 1593 | =over 4 | ||
| 1594 | |||
| 1595 | =item * key | ||
| 1596 | |||
| 1597 | =back | ||
| 1598 | |||
| 1599 | L<https://redis.io/commands/pexpiretime> | ||
| 1600 | |||
| 1601 | =cut | ||
| 1602 | |||
| 1603 | 0 | ▶ | method pexpiretime (@args) { |
|
Subroutine
pexpiretime: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1604 | 0 | $self->execute_command(qw(PEXPIRETIME) => @args) | |
| 1605 | 16 | } | |
| 1606 | |||
| 1607 | =head2 pttl | ||
| 1608 | |||
| 1609 | Get the time to live for a key in milliseconds. | ||
| 1610 | |||
| 1611 | =over 4 | ||
| 1612 | |||
| 1613 | =item * key | ||
| 1614 | |||
| 1615 | =back | ||
| 1616 | |||
| 1617 | L<https://redis.io/commands/pttl> | ||
| 1618 | |||
| 1619 | =cut | ||
| 1620 | |||
| 1621 | 0 | ▶ | method pttl (@args) { |
|
Subroutine
pttl: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1622 | 0 | $self->execute_command(qw(PTTL) => @args) | |
| 1623 | 16 | } | |
| 1624 | |||
| 1625 | =head2 randomkey | ||
| 1626 | |||
| 1627 | Return a random key from the keyspace. | ||
| 1628 | |||
| 1629 | L<https://redis.io/commands/randomkey> | ||
| 1630 | |||
| 1631 | =cut | ||
| 1632 | |||
| 1633 | 0 | ▶ | method randomkey (@args) { |
|
Subroutine
randomkey: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1634 | 0 | $self->execute_command(qw(RANDOMKEY) => @args) | |
| 1635 | 16 | } | |
| 1636 | |||
| 1637 | =head2 rename | ||
| 1638 | |||
| 1639 | Rename a key. | ||
| 1640 | |||
| 1641 | =over 4 | ||
| 1642 | |||
| 1643 | =item * key | ||
| 1644 | |||
| 1645 | =item * newkey | ||
| 1646 | |||
| 1647 | =back | ||
| 1648 | |||
| 1649 | L<https://redis.io/commands/rename> | ||
| 1650 | |||
| 1651 | =cut | ||
| 1652 | |||
| 1653 | 0 | ▶ | method rename (@args) { |
|
Subroutine
rename: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1654 | 0 | $self->execute_command(qw(RENAME) => @args) | |
| 1655 | 16 | } | |
| 1656 | |||
| 1657 | =head2 renamenx | ||
| 1658 | |||
| 1659 | Rename a key, only if the new key does not exist. | ||
| 1660 | |||
| 1661 | =over 4 | ||
| 1662 | |||
| 1663 | =item * key | ||
| 1664 | |||
| 1665 | =item * newkey | ||
| 1666 | |||
| 1667 | =back | ||
| 1668 | |||
| 1669 | L<https://redis.io/commands/renamenx> | ||
| 1670 | |||
| 1671 | =cut | ||
| 1672 | |||
| 1673 | 0 | ▶ | method renamenx (@args) { |
|
Subroutine
renamenx: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1674 | 0 | $self->execute_command(qw(RENAMENX) => @args) | |
| 1675 | 16 | } | |
| 1676 | |||
| 1677 | =head2 restore | ||
| 1678 | |||
| 1679 | Create a key using the provided serialized value, previously obtained using DUMP. | ||
| 1680 | |||
| 1681 | =over 4 | ||
| 1682 | |||
| 1683 | =item * key | ||
| 1684 | |||
| 1685 | =item * ttl | ||
| 1686 | |||
| 1687 | =item * serialized-value | ||
| 1688 | |||
| 1689 | =item * [REPLACE] | ||
| 1690 | |||
| 1691 | =item * [ABSTTL] | ||
| 1692 | |||
| 1693 | =item * [IDLETIME seconds] | ||
| 1694 | |||
| 1695 | =item * [FREQ frequency] | ||
| 1696 | |||
| 1697 | =back | ||
| 1698 | |||
| 1699 | L<https://redis.io/commands/restore> | ||
| 1700 | |||
| 1701 | =cut | ||
| 1702 | |||
| 1703 | 0 | ▶ | method restore (@args) { |
|
Subroutine
restore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1704 | 0 | $self->execute_command(qw(RESTORE) => @args) | |
| 1705 | 16 | } | |
| 1706 | |||
| 1707 | =head2 scan | ||
| 1708 | |||
| 1709 | Incrementally iterate the keys space. | ||
| 1710 | |||
| 1711 | =over 4 | ||
| 1712 | |||
| 1713 | =item * cursor | ||
| 1714 | |||
| 1715 | =item * [MATCH pattern] | ||
| 1716 | |||
| 1717 | =item * [COUNT count] | ||
| 1718 | |||
| 1719 | =item * [TYPE type] | ||
| 1720 | |||
| 1721 | =back | ||
| 1722 | |||
| 1723 | L<https://redis.io/commands/scan> | ||
| 1724 | |||
| 1725 | =cut | ||
| 1726 | |||
| 1727 | 0 | ▶ | method scan (@args) { |
|
Subroutine
scan: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1728 | 0 | $self->execute_command(qw(SCAN) => @args) | |
| 1729 | 16 | } | |
| 1730 | |||
| 1731 | =head2 sort | ||
| 1732 | |||
| 1733 | Sort the elements in a list, set or sorted set. | ||
| 1734 | |||
| 1735 | =over 4 | ||
| 1736 | |||
| 1737 | =item * key | ||
| 1738 | |||
| 1739 | =item * [BY pattern] | ||
| 1740 | |||
| 1741 | =item * [LIMIT offset count] | ||
| 1742 | |||
| 1743 | =item * [GET pattern [GET pattern ...]] | ||
| 1744 | |||
| 1745 | =item * [ASC|DESC] | ||
| 1746 | |||
| 1747 | =item * [ALPHA] | ||
| 1748 | |||
| 1749 | =item * [STORE destination] | ||
| 1750 | |||
| 1751 | =back | ||
| 1752 | |||
| 1753 | L<https://redis.io/commands/sort> | ||
| 1754 | |||
| 1755 | =cut | ||
| 1756 | |||
| 1757 | 0 | ▶ | method sort (@args) { |
|
Subroutine
sort: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1758 | 0 | $self->execute_command(qw(SORT) => @args) | |
| 1759 | 16 | } | |
| 1760 | |||
| 1761 | =head2 sort_ro | ||
| 1762 | |||
| 1763 | Sort the elements in a list, set or sorted set. Read-only variant of SORT. | ||
| 1764 | |||
| 1765 | =over 4 | ||
| 1766 | |||
| 1767 | =item * key | ||
| 1768 | |||
| 1769 | =item * [BY pattern] | ||
| 1770 | |||
| 1771 | =item * [LIMIT offset count] | ||
| 1772 | |||
| 1773 | =item * [GET pattern [GET pattern ...]] | ||
| 1774 | |||
| 1775 | =item * [ASC|DESC] | ||
| 1776 | |||
| 1777 | =item * [ALPHA] | ||
| 1778 | |||
| 1779 | =back | ||
| 1780 | |||
| 1781 | L<https://redis.io/commands/sort-ro> | ||
| 1782 | |||
| 1783 | =cut | ||
| 1784 | |||
| 1785 | 0 | ▶ | method sort_ro (@args) { |
|
Subroutine
sort_ro: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1786 | 0 | $self->execute_command(qw(SORT_RO) => @args) | |
| 1787 | 16 | } | |
| 1788 | |||
| 1789 | =head2 touch | ||
| 1790 | |||
| 1791 | Alters the last access time of a key(s). Returns the number of existing keys specified. | ||
| 1792 | |||
| 1793 | =over 4 | ||
| 1794 | |||
| 1795 | =item * key [key ...] | ||
| 1796 | |||
| 1797 | =back | ||
| 1798 | |||
| 1799 | L<https://redis.io/commands/touch> | ||
| 1800 | |||
| 1801 | =cut | ||
| 1802 | |||
| 1803 | 0 | ▶ | method touch (@args) { |
|
Subroutine
touch: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1804 | 0 | $self->execute_command(qw(TOUCH) => @args) | |
| 1805 | 16 | } | |
| 1806 | |||
| 1807 | =head2 ttl | ||
| 1808 | |||
| 1809 | Get the time to live for a key in seconds. | ||
| 1810 | |||
| 1811 | =over 4 | ||
| 1812 | |||
| 1813 | =item * key | ||
| 1814 | |||
| 1815 | =back | ||
| 1816 | |||
| 1817 | L<https://redis.io/commands/ttl> | ||
| 1818 | |||
| 1819 | =cut | ||
| 1820 | |||
| 1821 | 0 | ▶ | method ttl (@args) { |
|
Subroutine
ttl: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1822 | 0 | $self->execute_command(qw(TTL) => @args) | |
| 1823 | 16 | } | |
| 1824 | |||
| 1825 | =head2 type | ||
| 1826 | |||
| 1827 | Determine the type stored at key. | ||
| 1828 | |||
| 1829 | =over 4 | ||
| 1830 | |||
| 1831 | =item * key | ||
| 1832 | |||
| 1833 | =back | ||
| 1834 | |||
| 1835 | L<https://redis.io/commands/type> | ||
| 1836 | |||
| 1837 | =cut | ||
| 1838 | |||
| 1839 | 0 | ▶ | method type (@args) { |
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1840 | 0 | $self->execute_command(qw(TYPE) => @args) | |
| 1841 | 16 | } | |
| 1842 | |||
| 1843 | =head2 unlink | ||
| 1844 | |||
| 1845 | Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking. | ||
| 1846 | |||
| 1847 | =over 4 | ||
| 1848 | |||
| 1849 | =item * key [key ...] | ||
| 1850 | |||
| 1851 | =back | ||
| 1852 | |||
| 1853 | L<https://redis.io/commands/unlink> | ||
| 1854 | |||
| 1855 | =cut | ||
| 1856 | |||
| 1857 | 0 | ▶ | method unlink (@args) { |
|
Subroutine
unlink: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1858 | 0 | $self->execute_command(qw(UNLINK) => @args) | |
| 1859 | 16 | } | |
| 1860 | |||
| 1861 | =head2 wait | ||
| 1862 | |||
| 1863 | Wait for the synchronous replication of all the write commands sent in the context of the current connection. | ||
| 1864 | |||
| 1865 | =over 4 | ||
| 1866 | |||
| 1867 | =item * numreplicas | ||
| 1868 | |||
| 1869 | =item * timeout | ||
| 1870 | |||
| 1871 | =back | ||
| 1872 | |||
| 1873 | L<https://redis.io/commands/wait> | ||
| 1874 | |||
| 1875 | =cut | ||
| 1876 | |||
| 1877 | 0 | ▶ | method wait (@args) { |
|
Subroutine
wait: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1878 | 0 | $self->execute_command(qw(WAIT) => @args) | |
| 1879 | 16 | } | |
| 1880 | |||
| 1881 | =head1 METHODS - Geo | ||
| 1882 | |||
| 1883 | =head2 geoadd | ||
| 1884 | |||
| 1885 | Add one or more geospatial items in the geospatial index represented using a sorted set. | ||
| 1886 | |||
| 1887 | =over 4 | ||
| 1888 | |||
| 1889 | =item * key | ||
| 1890 | |||
| 1891 | =item * [NX|XX] | ||
| 1892 | |||
| 1893 | =item * [CH] | ||
| 1894 | |||
| 1895 | =item * longitude latitude member [longitude latitude member ...] | ||
| 1896 | |||
| 1897 | =back | ||
| 1898 | |||
| 1899 | L<https://redis.io/commands/geoadd> | ||
| 1900 | |||
| 1901 | =cut | ||
| 1902 | |||
| 1903 | 0 | ▶ | method geoadd (@args) { |
|
Subroutine
geoadd: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1904 | 0 | $self->execute_command(qw(GEOADD) => @args) | |
| 1905 | 16 | } | |
| 1906 | |||
| 1907 | =head2 geodist | ||
| 1908 | |||
| 1909 | Returns the distance between two members of a geospatial index. | ||
| 1910 | |||
| 1911 | =over 4 | ||
| 1912 | |||
| 1913 | =item * key | ||
| 1914 | |||
| 1915 | =item * member1 | ||
| 1916 | |||
| 1917 | =item * member2 | ||
| 1918 | |||
| 1919 | =item * [M|KM|FT|MI] | ||
| 1920 | |||
| 1921 | =back | ||
| 1922 | |||
| 1923 | L<https://redis.io/commands/geodist> | ||
| 1924 | |||
| 1925 | =cut | ||
| 1926 | |||
| 1927 | 0 | ▶ | method geodist (@args) { |
|
Subroutine
geodist: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1928 | 0 | $self->execute_command(qw(GEODIST) => @args) | |
| 1929 | 16 | } | |
| 1930 | |||
| 1931 | =head2 geohash | ||
| 1932 | |||
| 1933 | Returns members of a geospatial index as standard geohash strings. | ||
| 1934 | |||
| 1935 | =over 4 | ||
| 1936 | |||
| 1937 | =item * key | ||
| 1938 | |||
| 1939 | =item * member [member ...] | ||
| 1940 | |||
| 1941 | =back | ||
| 1942 | |||
| 1943 | L<https://redis.io/commands/geohash> | ||
| 1944 | |||
| 1945 | =cut | ||
| 1946 | |||
| 1947 | 0 | ▶ | method geohash (@args) { |
|
Subroutine
geohash: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1948 | 0 | $self->execute_command(qw(GEOHASH) => @args) | |
| 1949 | 16 | } | |
| 1950 | |||
| 1951 | =head2 geopos | ||
| 1952 | |||
| 1953 | Returns longitude and latitude of members of a geospatial index. | ||
| 1954 | |||
| 1955 | =over 4 | ||
| 1956 | |||
| 1957 | =item * key | ||
| 1958 | |||
| 1959 | =item * member [member ...] | ||
| 1960 | |||
| 1961 | =back | ||
| 1962 | |||
| 1963 | L<https://redis.io/commands/geopos> | ||
| 1964 | |||
| 1965 | =cut | ||
| 1966 | |||
| 1967 | 0 | ▶ | method geopos (@args) { |
|
Subroutine
geopos: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 1968 | 0 | $self->execute_command(qw(GEOPOS) => @args) | |
| 1969 | 16 | } | |
| 1970 | |||
| 1971 | =head2 georadius | ||
| 1972 | |||
| 1973 | Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point. | ||
| 1974 | |||
| 1975 | =over 4 | ||
| 1976 | |||
| 1977 | =item * key | ||
| 1978 | |||
| 1979 | =item * longitude | ||
| 1980 | |||
| 1981 | =item * latitude | ||
| 1982 | |||
| 1983 | =item * radius | ||
| 1984 | |||
| 1985 | =item * M|KM|FT|MI | ||
| 1986 | |||
| 1987 | =item * [WITHCOORD] | ||
| 1988 | |||
| 1989 | =item * [WITHDIST] | ||
| 1990 | |||
| 1991 | =item * [WITHHASH] | ||
| 1992 | |||
| 1993 | =item * [COUNT count [ANY]] | ||
| 1994 | |||
| 1995 | =item * [ASC|DESC] | ||
| 1996 | |||
| 1997 | =item * [STORE key] | ||
| 1998 | |||
| 1999 | =item * [STOREDIST key] | ||
| 2000 | |||
| 2001 | =back | ||
| 2002 | |||
| 2003 | L<https://redis.io/commands/georadius> | ||
| 2004 | |||
| 2005 | =cut | ||
| 2006 | |||
| 2007 | 0 | ▶ | method georadius (@args) { |
|
Subroutine
georadius: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2008 | 0 | $self->execute_command(qw(GEORADIUS) => @args) | |
| 2009 | 16 | } | |
| 2010 | |||
| 2011 | =head2 georadius_ro | ||
| 2012 | |||
| 2013 | A read-only variant for GEORADIUS. | ||
| 2014 | |||
| 2015 | =over 4 | ||
| 2016 | |||
| 2017 | =item * key | ||
| 2018 | |||
| 2019 | =item * longitude | ||
| 2020 | |||
| 2021 | =item * latitude | ||
| 2022 | |||
| 2023 | =item * radius | ||
| 2024 | |||
| 2025 | =item * M|KM|FT|MI | ||
| 2026 | |||
| 2027 | =item * [WITHCOORD] | ||
| 2028 | |||
| 2029 | =item * [WITHDIST] | ||
| 2030 | |||
| 2031 | =item * [WITHHASH] | ||
| 2032 | |||
| 2033 | =item * [COUNT count [ANY]] | ||
| 2034 | |||
| 2035 | =item * [ASC|DESC] | ||
| 2036 | |||
| 2037 | =back | ||
| 2038 | |||
| 2039 | L<https://redis.io/commands/georadius-ro> | ||
| 2040 | |||
| 2041 | =cut | ||
| 2042 | |||
| 2043 | 0 | ▶ | method georadius_ro (@args) { |
|
Subroutine
georadius_ro: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2044 | 0 | $self->execute_command(qw(GEORADIUS_RO) => @args) | |
| 2045 | 16 | } | |
| 2046 | |||
| 2047 | =head2 georadiusbymember | ||
| 2048 | |||
| 2049 | Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member. | ||
| 2050 | |||
| 2051 | =over 4 | ||
| 2052 | |||
| 2053 | =item * key | ||
| 2054 | |||
| 2055 | =item * member | ||
| 2056 | |||
| 2057 | =item * radius | ||
| 2058 | |||
| 2059 | =item * M|KM|FT|MI | ||
| 2060 | |||
| 2061 | =item * [WITHCOORD] | ||
| 2062 | |||
| 2063 | =item * [WITHDIST] | ||
| 2064 | |||
| 2065 | =item * [WITHHASH] | ||
| 2066 | |||
| 2067 | =item * [COUNT count [ANY]] | ||
| 2068 | |||
| 2069 | =item * [ASC|DESC] | ||
| 2070 | |||
| 2071 | =item * [STORE key] | ||
| 2072 | |||
| 2073 | =item * [STOREDIST key] | ||
| 2074 | |||
| 2075 | =back | ||
| 2076 | |||
| 2077 | L<https://redis.io/commands/georadiusbymember> | ||
| 2078 | |||
| 2079 | =cut | ||
| 2080 | |||
| 2081 | 0 | ▶ | method georadiusbymember (@args) { |
|
Subroutine
georadiusbymember: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2082 | 0 | $self->execute_command(qw(GEORADIUSBYMEMBER) => @args) | |
| 2083 | 16 | } | |
| 2084 | |||
| 2085 | =head2 georadiusbymember_ro | ||
| 2086 | |||
| 2087 | A read-only variant for GEORADIUSBYMEMBER. | ||
| 2088 | |||
| 2089 | =over 4 | ||
| 2090 | |||
| 2091 | =item * key | ||
| 2092 | |||
| 2093 | =item * member | ||
| 2094 | |||
| 2095 | =item * radius | ||
| 2096 | |||
| 2097 | =item * M|KM|FT|MI | ||
| 2098 | |||
| 2099 | =item * [WITHCOORD] | ||
| 2100 | |||
| 2101 | =item * [WITHDIST] | ||
| 2102 | |||
| 2103 | =item * [WITHHASH] | ||
| 2104 | |||
| 2105 | =item * [COUNT count [ANY]] | ||
| 2106 | |||
| 2107 | =item * [ASC|DESC] | ||
| 2108 | |||
| 2109 | =back | ||
| 2110 | |||
| 2111 | L<https://redis.io/commands/georadiusbymember-ro> | ||
| 2112 | |||
| 2113 | =cut | ||
| 2114 | |||
| 2115 | 0 | ▶ | method georadiusbymember_ro (@args) { |
|
Subroutine
georadiusbymember_ro: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2116 | 0 | $self->execute_command(qw(GEORADIUSBYMEMBER_RO) => @args) | |
| 2117 | 16 | } | |
| 2118 | |||
| 2119 | =head2 geosearch | ||
| 2120 | |||
| 2121 | Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle. | ||
| 2122 | |||
| 2123 | =over 4 | ||
| 2124 | |||
| 2125 | =item * key | ||
| 2126 | |||
| 2127 | =item * [FROMMEMBER member] | ||
| 2128 | |||
| 2129 | =item * [FROMLONLAT longitude latitude] | ||
| 2130 | |||
| 2131 | =item * [BYRADIUS radius M|KM|FT|MI] | ||
| 2132 | |||
| 2133 | =item * [BYBOX width height M|KM|FT|MI] | ||
| 2134 | |||
| 2135 | =item * [ASC|DESC] | ||
| 2136 | |||
| 2137 | =item * [COUNT count [ANY]] | ||
| 2138 | |||
| 2139 | =item * [WITHCOORD] | ||
| 2140 | |||
| 2141 | =item * [WITHDIST] | ||
| 2142 | |||
| 2143 | =item * [WITHHASH] | ||
| 2144 | |||
| 2145 | =back | ||
| 2146 | |||
| 2147 | L<https://redis.io/commands/geosearch> | ||
| 2148 | |||
| 2149 | =cut | ||
| 2150 | |||
| 2151 | 0 | ▶ | method geosearch (@args) { |
|
Subroutine
geosearch: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2152 | 0 | $self->execute_command(qw(GEOSEARCH) => @args) | |
| 2153 | 16 | } | |
| 2154 | |||
| 2155 | =head2 geosearchstore | ||
| 2156 | |||
| 2157 | Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle, and store the result in another key. | ||
| 2158 | |||
| 2159 | =over 4 | ||
| 2160 | |||
| 2161 | =item * destination | ||
| 2162 | |||
| 2163 | =item * source | ||
| 2164 | |||
| 2165 | =item * [FROMMEMBER member] | ||
| 2166 | |||
| 2167 | =item * [FROMLONLAT longitude latitude] | ||
| 2168 | |||
| 2169 | =item * [BYRADIUS radius M|KM|FT|MI] | ||
| 2170 | |||
| 2171 | =item * [BYBOX width height M|KM|FT|MI] | ||
| 2172 | |||
| 2173 | =item * [ASC|DESC] | ||
| 2174 | |||
| 2175 | =item * [COUNT count [ANY]] | ||
| 2176 | |||
| 2177 | =item * [STOREDIST] | ||
| 2178 | |||
| 2179 | =back | ||
| 2180 | |||
| 2181 | L<https://redis.io/commands/geosearchstore> | ||
| 2182 | |||
| 2183 | =cut | ||
| 2184 | |||
| 2185 | 0 | ▶ | method geosearchstore (@args) { |
|
Subroutine
geosearchstore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2186 | 0 | $self->execute_command(qw(GEOSEARCHSTORE) => @args) | |
| 2187 | 16 | } | |
| 2188 | |||
| 2189 | =head1 METHODS - Hash | ||
| 2190 | |||
| 2191 | =head2 hdel | ||
| 2192 | |||
| 2193 | Delete one or more hash fields. | ||
| 2194 | |||
| 2195 | =over 4 | ||
| 2196 | |||
| 2197 | =item * key | ||
| 2198 | |||
| 2199 | =item * field [field ...] | ||
| 2200 | |||
| 2201 | =back | ||
| 2202 | |||
| 2203 | L<https://redis.io/commands/hdel> | ||
| 2204 | |||
| 2205 | =cut | ||
| 2206 | |||
| 2207 | 0 | ▶ | method hdel (@args) { |
|
Subroutine
hdel: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2208 | 0 | $self->execute_command(qw(HDEL) => @args) | |
| 2209 | 16 | } | |
| 2210 | |||
| 2211 | =head2 hexists | ||
| 2212 | |||
| 2213 | Determine if a hash field exists. | ||
| 2214 | |||
| 2215 | =over 4 | ||
| 2216 | |||
| 2217 | =item * key | ||
| 2218 | |||
| 2219 | =item * field | ||
| 2220 | |||
| 2221 | =back | ||
| 2222 | |||
| 2223 | L<https://redis.io/commands/hexists> | ||
| 2224 | |||
| 2225 | =cut | ||
| 2226 | |||
| 2227 | 0 | ▶ | method hexists (@args) { |
|
Subroutine
hexists: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2228 | 0 | $self->execute_command(qw(HEXISTS) => @args) | |
| 2229 | 16 | } | |
| 2230 | |||
| 2231 | =head2 hget | ||
| 2232 | |||
| 2233 | Get the value of a hash field. | ||
| 2234 | |||
| 2235 | =over 4 | ||
| 2236 | |||
| 2237 | =item * key | ||
| 2238 | |||
| 2239 | =item * field | ||
| 2240 | |||
| 2241 | =back | ||
| 2242 | |||
| 2243 | L<https://redis.io/commands/hget> | ||
| 2244 | |||
| 2245 | =cut | ||
| 2246 | |||
| 2247 | 0 | ▶ | method hget (@args) { |
|
Subroutine
hget: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2248 | 0 | $self->execute_command(qw(HGET) => @args) | |
| 2249 | 16 | } | |
| 2250 | |||
| 2251 | =head2 hgetall | ||
| 2252 | |||
| 2253 | Get all the fields and values in a hash. | ||
| 2254 | |||
| 2255 | =over 4 | ||
| 2256 | |||
| 2257 | =item * key | ||
| 2258 | |||
| 2259 | =back | ||
| 2260 | |||
| 2261 | L<https://redis.io/commands/hgetall> | ||
| 2262 | |||
| 2263 | =cut | ||
| 2264 | |||
| 2265 | 0 | ▶ | method hgetall (@args) { |
|
Subroutine
hgetall: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2266 | 0 | $self->execute_command(qw(HGETALL) => @args) | |
| 2267 | 16 | } | |
| 2268 | |||
| 2269 | =head2 hincrby | ||
| 2270 | |||
| 2271 | Increment the integer value of a hash field by the given number. | ||
| 2272 | |||
| 2273 | =over 4 | ||
| 2274 | |||
| 2275 | =item * key | ||
| 2276 | |||
| 2277 | =item * field | ||
| 2278 | |||
| 2279 | =item * increment | ||
| 2280 | |||
| 2281 | =back | ||
| 2282 | |||
| 2283 | L<https://redis.io/commands/hincrby> | ||
| 2284 | |||
| 2285 | =cut | ||
| 2286 | |||
| 2287 | 0 | ▶ | method hincrby (@args) { |
|
Subroutine
hincrby: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2288 | 0 | $self->execute_command(qw(HINCRBY) => @args) | |
| 2289 | 16 | } | |
| 2290 | |||
| 2291 | =head2 hincrbyfloat | ||
| 2292 | |||
| 2293 | Increment the float value of a hash field by the given amount. | ||
| 2294 | |||
| 2295 | =over 4 | ||
| 2296 | |||
| 2297 | =item * key | ||
| 2298 | |||
| 2299 | =item * field | ||
| 2300 | |||
| 2301 | =item * increment | ||
| 2302 | |||
| 2303 | =back | ||
| 2304 | |||
| 2305 | L<https://redis.io/commands/hincrbyfloat> | ||
| 2306 | |||
| 2307 | =cut | ||
| 2308 | |||
| 2309 | 0 | ▶ | method hincrbyfloat (@args) { |
|
Subroutine
hincrbyfloat: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2310 | 0 | $self->execute_command(qw(HINCRBYFLOAT) => @args) | |
| 2311 | 16 | } | |
| 2312 | |||
| 2313 | =head2 hkeys | ||
| 2314 | |||
| 2315 | Get all the fields in a hash. | ||
| 2316 | |||
| 2317 | =over 4 | ||
| 2318 | |||
| 2319 | =item * key | ||
| 2320 | |||
| 2321 | =back | ||
| 2322 | |||
| 2323 | L<https://redis.io/commands/hkeys> | ||
| 2324 | |||
| 2325 | =cut | ||
| 2326 | |||
| 2327 | 0 | ▶ | method hkeys (@args) { |
|
Subroutine
hkeys: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2328 | 0 | $self->execute_command(qw(HKEYS) => @args) | |
| 2329 | 16 | } | |
| 2330 | |||
| 2331 | =head2 hlen | ||
| 2332 | |||
| 2333 | Get the number of fields in a hash. | ||
| 2334 | |||
| 2335 | =over 4 | ||
| 2336 | |||
| 2337 | =item * key | ||
| 2338 | |||
| 2339 | =back | ||
| 2340 | |||
| 2341 | L<https://redis.io/commands/hlen> | ||
| 2342 | |||
| 2343 | =cut | ||
| 2344 | |||
| 2345 | 0 | ▶ | method hlen (@args) { |
|
Subroutine
hlen: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2346 | 0 | $self->execute_command(qw(HLEN) => @args) | |
| 2347 | 16 | } | |
| 2348 | |||
| 2349 | =head2 hmget | ||
| 2350 | |||
| 2351 | Get the values of all the given hash fields. | ||
| 2352 | |||
| 2353 | =over 4 | ||
| 2354 | |||
| 2355 | =item * key | ||
| 2356 | |||
| 2357 | =item * field [field ...] | ||
| 2358 | |||
| 2359 | =back | ||
| 2360 | |||
| 2361 | L<https://redis.io/commands/hmget> | ||
| 2362 | |||
| 2363 | =cut | ||
| 2364 | |||
| 2365 | 0 | ▶ | method hmget (@args) { |
|
Subroutine
hmget: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2366 | 0 | $self->execute_command(qw(HMGET) => @args) | |
| 2367 | 16 | } | |
| 2368 | |||
| 2369 | =head2 hmset | ||
| 2370 | |||
| 2371 | Set multiple hash fields to multiple values. | ||
| 2372 | |||
| 2373 | =over 4 | ||
| 2374 | |||
| 2375 | =item * key | ||
| 2376 | |||
| 2377 | =item * field value [field value ...] | ||
| 2378 | |||
| 2379 | =back | ||
| 2380 | |||
| 2381 | L<https://redis.io/commands/hmset> | ||
| 2382 | |||
| 2383 | =cut | ||
| 2384 | |||
| 2385 | 0 | ▶ | method hmset (@args) { |
|
Subroutine
hmset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2386 | 0 | $self->execute_command(qw(HMSET) => @args) | |
| 2387 | 16 | } | |
| 2388 | |||
| 2389 | =head2 hrandfield | ||
| 2390 | |||
| 2391 | Get one or multiple random fields from a hash. | ||
| 2392 | |||
| 2393 | =over 4 | ||
| 2394 | |||
| 2395 | =item * key | ||
| 2396 | |||
| 2397 | =item * [count [WITHVALUES]] | ||
| 2398 | |||
| 2399 | =back | ||
| 2400 | |||
| 2401 | L<https://redis.io/commands/hrandfield> | ||
| 2402 | |||
| 2403 | =cut | ||
| 2404 | |||
| 2405 | 0 | ▶ | method hrandfield (@args) { |
|
Subroutine
hrandfield: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2406 | 0 | $self->execute_command(qw(HRANDFIELD) => @args) | |
| 2407 | 16 | } | |
| 2408 | |||
| 2409 | =head2 hscan | ||
| 2410 | |||
| 2411 | Incrementally iterate hash fields and associated values. | ||
| 2412 | |||
| 2413 | =over 4 | ||
| 2414 | |||
| 2415 | =item * key | ||
| 2416 | |||
| 2417 | =item * cursor | ||
| 2418 | |||
| 2419 | =item * [MATCH pattern] | ||
| 2420 | |||
| 2421 | =item * [COUNT count] | ||
| 2422 | |||
| 2423 | =back | ||
| 2424 | |||
| 2425 | L<https://redis.io/commands/hscan> | ||
| 2426 | |||
| 2427 | =cut | ||
| 2428 | |||
| 2429 | 0 | ▶ | method hscan (@args) { |
|
Subroutine
hscan: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2430 | 0 | $self->execute_command(qw(HSCAN) => @args) | |
| 2431 | 16 | } | |
| 2432 | |||
| 2433 | =head2 hset | ||
| 2434 | |||
| 2435 | Set the string value of a hash field. | ||
| 2436 | |||
| 2437 | =over 4 | ||
| 2438 | |||
| 2439 | =item * key | ||
| 2440 | |||
| 2441 | =item * field value [field value ...] | ||
| 2442 | |||
| 2443 | =back | ||
| 2444 | |||
| 2445 | L<https://redis.io/commands/hset> | ||
| 2446 | |||
| 2447 | =cut | ||
| 2448 | |||
| 2449 | 0 | ▶ | method hset (@args) { |
|
Subroutine
hset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2450 | 0 | $self->execute_command(qw(HSET) => @args) | |
| 2451 | 16 | } | |
| 2452 | |||
| 2453 | =head2 hsetnx | ||
| 2454 | |||
| 2455 | Set the value of a hash field, only if the field does not exist. | ||
| 2456 | |||
| 2457 | =over 4 | ||
| 2458 | |||
| 2459 | =item * key | ||
| 2460 | |||
| 2461 | =item * field | ||
| 2462 | |||
| 2463 | =item * value | ||
| 2464 | |||
| 2465 | =back | ||
| 2466 | |||
| 2467 | L<https://redis.io/commands/hsetnx> | ||
| 2468 | |||
| 2469 | =cut | ||
| 2470 | |||
| 2471 | 0 | ▶ | method hsetnx (@args) { |
|
Subroutine
hsetnx: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2472 | 0 | $self->execute_command(qw(HSETNX) => @args) | |
| 2473 | 16 | } | |
| 2474 | |||
| 2475 | =head2 hstrlen | ||
| 2476 | |||
| 2477 | Get the length of the value of a hash field. | ||
| 2478 | |||
| 2479 | =over 4 | ||
| 2480 | |||
| 2481 | =item * key | ||
| 2482 | |||
| 2483 | =item * field | ||
| 2484 | |||
| 2485 | =back | ||
| 2486 | |||
| 2487 | L<https://redis.io/commands/hstrlen> | ||
| 2488 | |||
| 2489 | =cut | ||
| 2490 | |||
| 2491 | 0 | ▶ | method hstrlen (@args) { |
|
Subroutine
hstrlen: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2492 | 0 | $self->execute_command(qw(HSTRLEN) => @args) | |
| 2493 | 16 | } | |
| 2494 | |||
| 2495 | =head2 hvals | ||
| 2496 | |||
| 2497 | Get all the values in a hash. | ||
| 2498 | |||
| 2499 | =over 4 | ||
| 2500 | |||
| 2501 | =item * key | ||
| 2502 | |||
| 2503 | =back | ||
| 2504 | |||
| 2505 | L<https://redis.io/commands/hvals> | ||
| 2506 | |||
| 2507 | =cut | ||
| 2508 | |||
| 2509 | 0 | ▶ | method hvals (@args) { |
|
Subroutine
hvals: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2510 | 0 | $self->execute_command(qw(HVALS) => @args) | |
| 2511 | 16 | } | |
| 2512 | |||
| 2513 | =head1 METHODS - Hyperloglog | ||
| 2514 | |||
| 2515 | =head2 pfadd | ||
| 2516 | |||
| 2517 | Adds the specified elements to the specified HyperLogLog. | ||
| 2518 | |||
| 2519 | =over 4 | ||
| 2520 | |||
| 2521 | =item * key | ||
| 2522 | |||
| 2523 | =item * [element [element ...]] | ||
| 2524 | |||
| 2525 | =back | ||
| 2526 | |||
| 2527 | L<https://redis.io/commands/pfadd> | ||
| 2528 | |||
| 2529 | =cut | ||
| 2530 | |||
| 2531 | 0 | ▶ | method pfadd (@args) { |
|
Subroutine
pfadd: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2532 | 0 | $self->execute_command(qw(PFADD) => @args) | |
| 2533 | 16 | } | |
| 2534 | |||
| 2535 | =head2 pfcount | ||
| 2536 | |||
| 2537 | Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). | ||
| 2538 | |||
| 2539 | =over 4 | ||
| 2540 | |||
| 2541 | =item * key [key ...] | ||
| 2542 | |||
| 2543 | =back | ||
| 2544 | |||
| 2545 | L<https://redis.io/commands/pfcount> | ||
| 2546 | |||
| 2547 | =cut | ||
| 2548 | |||
| 2549 | 0 | ▶ | method pfcount (@args) { |
|
Subroutine
pfcount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2550 | 0 | $self->execute_command(qw(PFCOUNT) => @args) | |
| 2551 | 16 | } | |
| 2552 | |||
| 2553 | =head2 pfdebug | ||
| 2554 | |||
| 2555 | Internal commands for debugging HyperLogLog values. | ||
| 2556 | |||
| 2557 | L<https://redis.io/commands/pfdebug> | ||
| 2558 | |||
| 2559 | =cut | ||
| 2560 | |||
| 2561 | 0 | ▶ | method pfdebug (@args) { |
|
Subroutine
pfdebug: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2562 | 0 | $self->execute_command(qw(PFDEBUG) => @args) | |
| 2563 | 16 | } | |
| 2564 | |||
| 2565 | =head2 pfmerge | ||
| 2566 | |||
| 2567 | Merge N different HyperLogLogs into a single one. | ||
| 2568 | |||
| 2569 | =over 4 | ||
| 2570 | |||
| 2571 | =item * destkey | ||
| 2572 | |||
| 2573 | =item * sourcekey [sourcekey ...] | ||
| 2574 | |||
| 2575 | =back | ||
| 2576 | |||
| 2577 | L<https://redis.io/commands/pfmerge> | ||
| 2578 | |||
| 2579 | =cut | ||
| 2580 | |||
| 2581 | 0 | ▶ | method pfmerge (@args) { |
|
Subroutine
pfmerge: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2582 | 0 | $self->execute_command(qw(PFMERGE) => @args) | |
| 2583 | 16 | } | |
| 2584 | |||
| 2585 | =head2 pfselftest | ||
| 2586 | |||
| 2587 | An internal command for testing HyperLogLog values. | ||
| 2588 | |||
| 2589 | L<https://redis.io/commands/pfselftest> | ||
| 2590 | |||
| 2591 | =cut | ||
| 2592 | |||
| 2593 | 0 | ▶ | method pfselftest (@args) { |
|
Subroutine
pfselftest: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2594 | 0 | $self->execute_command(qw(PFSELFTEST) => @args) | |
| 2595 | 16 | } | |
| 2596 | |||
| 2597 | =head1 METHODS - List | ||
| 2598 | |||
| 2599 | =head2 blmove | ||
| 2600 | |||
| 2601 | Pop an element from a list, push it to another list and return it; or block until one is available. | ||
| 2602 | |||
| 2603 | =over 4 | ||
| 2604 | |||
| 2605 | =item * source | ||
| 2606 | |||
| 2607 | =item * destination | ||
| 2608 | |||
| 2609 | =item * LEFT|RIGHT | ||
| 2610 | |||
| 2611 | =item * LEFT|RIGHT | ||
| 2612 | |||
| 2613 | =item * timeout | ||
| 2614 | |||
| 2615 | =back | ||
| 2616 | |||
| 2617 | L<https://redis.io/commands/blmove> | ||
| 2618 | |||
| 2619 | =cut | ||
| 2620 | |||
| 2621 | 0 | ▶ | method blmove (@args) { |
|
Subroutine
blmove: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2622 | 0 | $self->execute_command(qw(BLMOVE) => @args) | |
| 2623 | 16 | } | |
| 2624 | |||
| 2625 | =head2 blmpop | ||
| 2626 | |||
| 2627 | Pop elements from a list, or block until one is available. | ||
| 2628 | |||
| 2629 | =over 4 | ||
| 2630 | |||
| 2631 | =item * timeout | ||
| 2632 | |||
| 2633 | =item * numkeys | ||
| 2634 | |||
| 2635 | =item * key [key ...] | ||
| 2636 | |||
| 2637 | =item * LEFT|RIGHT | ||
| 2638 | |||
| 2639 | =item * [COUNT count] | ||
| 2640 | |||
| 2641 | =back | ||
| 2642 | |||
| 2643 | L<https://redis.io/commands/blmpop> | ||
| 2644 | |||
| 2645 | =cut | ||
| 2646 | |||
| 2647 | 0 | ▶ | method blmpop (@args) { |
|
Subroutine
blmpop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2648 | 0 | $self->execute_command(qw(BLMPOP) => @args) | |
| 2649 | 16 | } | |
| 2650 | |||
| 2651 | =head2 blpop | ||
| 2652 | |||
| 2653 | Remove and get the first element in a list, or block until one is available. | ||
| 2654 | |||
| 2655 | =over 4 | ||
| 2656 | |||
| 2657 | =item * key [key ...] | ||
| 2658 | |||
| 2659 | =item * timeout | ||
| 2660 | |||
| 2661 | =back | ||
| 2662 | |||
| 2663 | L<https://redis.io/commands/blpop> | ||
| 2664 | |||
| 2665 | =cut | ||
| 2666 | |||
| 2667 | 0 | ▶ | method blpop (@args) { |
|
Subroutine
blpop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2668 | 0 | $self->execute_command(qw(BLPOP) => @args) | |
| 2669 | 16 | } | |
| 2670 | |||
| 2671 | =head2 brpop | ||
| 2672 | |||
| 2673 | Remove and get the last element in a list, or block until one is available. | ||
| 2674 | |||
| 2675 | =over 4 | ||
| 2676 | |||
| 2677 | =item * key [key ...] | ||
| 2678 | |||
| 2679 | =item * timeout | ||
| 2680 | |||
| 2681 | =back | ||
| 2682 | |||
| 2683 | L<https://redis.io/commands/brpop> | ||
| 2684 | |||
| 2685 | =cut | ||
| 2686 | |||
| 2687 | 0 | ▶ | method brpop (@args) { |
|
Subroutine
brpop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2688 | 0 | $self->execute_command(qw(BRPOP) => @args) | |
| 2689 | 16 | } | |
| 2690 | |||
| 2691 | =head2 brpoplpush | ||
| 2692 | |||
| 2693 | Pop an element from a list, push it to another list and return it; or block until one is available. | ||
| 2694 | |||
| 2695 | =over 4 | ||
| 2696 | |||
| 2697 | =item * source | ||
| 2698 | |||
| 2699 | =item * destination | ||
| 2700 | |||
| 2701 | =item * timeout | ||
| 2702 | |||
| 2703 | =back | ||
| 2704 | |||
| 2705 | L<https://redis.io/commands/brpoplpush> | ||
| 2706 | |||
| 2707 | =cut | ||
| 2708 | |||
| 2709 | 0 | ▶ | method brpoplpush (@args) { |
|
Subroutine
brpoplpush: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2710 | 0 | $self->execute_command(qw(BRPOPLPUSH) => @args) | |
| 2711 | 16 | } | |
| 2712 | |||
| 2713 | =head2 lindex | ||
| 2714 | |||
| 2715 | Get an element from a list by its index. | ||
| 2716 | |||
| 2717 | =over 4 | ||
| 2718 | |||
| 2719 | =item * key | ||
| 2720 | |||
| 2721 | =item * index | ||
| 2722 | |||
| 2723 | =back | ||
| 2724 | |||
| 2725 | L<https://redis.io/commands/lindex> | ||
| 2726 | |||
| 2727 | =cut | ||
| 2728 | |||
| 2729 | 0 | ▶ | method lindex (@args) { |
|
Subroutine
lindex: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2730 | 0 | $self->execute_command(qw(LINDEX) => @args) | |
| 2731 | 16 | } | |
| 2732 | |||
| 2733 | =head2 linsert | ||
| 2734 | |||
| 2735 | Insert an element before or after another element in a list. | ||
| 2736 | |||
| 2737 | =over 4 | ||
| 2738 | |||
| 2739 | =item * key | ||
| 2740 | |||
| 2741 | =item * BEFORE|AFTER | ||
| 2742 | |||
| 2743 | =item * pivot | ||
| 2744 | |||
| 2745 | =item * element | ||
| 2746 | |||
| 2747 | =back | ||
| 2748 | |||
| 2749 | L<https://redis.io/commands/linsert> | ||
| 2750 | |||
| 2751 | =cut | ||
| 2752 | |||
| 2753 | 0 | ▶ | method linsert (@args) { |
|
Subroutine
linsert: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2754 | 0 | $self->execute_command(qw(LINSERT) => @args) | |
| 2755 | 16 | } | |
| 2756 | |||
| 2757 | =head2 llen | ||
| 2758 | |||
| 2759 | Get the length of a list. | ||
| 2760 | |||
| 2761 | =over 4 | ||
| 2762 | |||
| 2763 | =item * key | ||
| 2764 | |||
| 2765 | =back | ||
| 2766 | |||
| 2767 | L<https://redis.io/commands/llen> | ||
| 2768 | |||
| 2769 | =cut | ||
| 2770 | |||
| 2771 | 0 | ▶ | method llen (@args) { |
|
Subroutine
llen: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2772 | 0 | $self->execute_command(qw(LLEN) => @args) | |
| 2773 | 16 | } | |
| 2774 | |||
| 2775 | =head2 lmove | ||
| 2776 | |||
| 2777 | Pop an element from a list, push it to another list and return it. | ||
| 2778 | |||
| 2779 | =over 4 | ||
| 2780 | |||
| 2781 | =item * source | ||
| 2782 | |||
| 2783 | =item * destination | ||
| 2784 | |||
| 2785 | =item * LEFT|RIGHT | ||
| 2786 | |||
| 2787 | =item * LEFT|RIGHT | ||
| 2788 | |||
| 2789 | =back | ||
| 2790 | |||
| 2791 | L<https://redis.io/commands/lmove> | ||
| 2792 | |||
| 2793 | =cut | ||
| 2794 | |||
| 2795 | 0 | ▶ | method lmove (@args) { |
|
Subroutine
lmove: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2796 | 0 | $self->execute_command(qw(LMOVE) => @args) | |
| 2797 | 16 | } | |
| 2798 | |||
| 2799 | =head2 lmpop | ||
| 2800 | |||
| 2801 | Pop elements from a list. | ||
| 2802 | |||
| 2803 | =over 4 | ||
| 2804 | |||
| 2805 | =item * numkeys | ||
| 2806 | |||
| 2807 | =item * key [key ...] | ||
| 2808 | |||
| 2809 | =item * LEFT|RIGHT | ||
| 2810 | |||
| 2811 | =item * [COUNT count] | ||
| 2812 | |||
| 2813 | =back | ||
| 2814 | |||
| 2815 | L<https://redis.io/commands/lmpop> | ||
| 2816 | |||
| 2817 | =cut | ||
| 2818 | |||
| 2819 | 0 | ▶ | method lmpop (@args) { |
|
Subroutine
lmpop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2820 | 0 | $self->execute_command(qw(LMPOP) => @args) | |
| 2821 | 16 | } | |
| 2822 | |||
| 2823 | =head2 lpop | ||
| 2824 | |||
| 2825 | Remove and get the first elements in a list. | ||
| 2826 | |||
| 2827 | =over 4 | ||
| 2828 | |||
| 2829 | =item * key | ||
| 2830 | |||
| 2831 | =item * [count] | ||
| 2832 | |||
| 2833 | =back | ||
| 2834 | |||
| 2835 | L<https://redis.io/commands/lpop> | ||
| 2836 | |||
| 2837 | =cut | ||
| 2838 | |||
| 2839 | 0 | ▶ | method lpop (@args) { |
|
Subroutine
lpop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2840 | 0 | $self->execute_command(qw(LPOP) => @args) | |
| 2841 | 16 | } | |
| 2842 | |||
| 2843 | =head2 lpos | ||
| 2844 | |||
| 2845 | Return the index of matching elements on a list. | ||
| 2846 | |||
| 2847 | =over 4 | ||
| 2848 | |||
| 2849 | =item * key | ||
| 2850 | |||
| 2851 | =item * element | ||
| 2852 | |||
| 2853 | =item * [RANK rank] | ||
| 2854 | |||
| 2855 | =item * [COUNT num-matches] | ||
| 2856 | |||
| 2857 | =item * [MAXLEN len] | ||
| 2858 | |||
| 2859 | =back | ||
| 2860 | |||
| 2861 | L<https://redis.io/commands/lpos> | ||
| 2862 | |||
| 2863 | =cut | ||
| 2864 | |||
| 2865 | 0 | ▶ | method lpos (@args) { |
|
Subroutine
lpos: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2866 | 0 | $self->execute_command(qw(LPOS) => @args) | |
| 2867 | 16 | } | |
| 2868 | |||
| 2869 | =head2 lpush | ||
| 2870 | |||
| 2871 | Prepend one or multiple elements to a list. | ||
| 2872 | |||
| 2873 | =over 4 | ||
| 2874 | |||
| 2875 | =item * key | ||
| 2876 | |||
| 2877 | =item * element [element ...] | ||
| 2878 | |||
| 2879 | =back | ||
| 2880 | |||
| 2881 | L<https://redis.io/commands/lpush> | ||
| 2882 | |||
| 2883 | =cut | ||
| 2884 | |||
| 2885 | 0 | ▶ | method lpush (@args) { |
|
Subroutine
lpush: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2886 | 0 | $self->execute_command(qw(LPUSH) => @args) | |
| 2887 | 16 | } | |
| 2888 | |||
| 2889 | =head2 lpushx | ||
| 2890 | |||
| 2891 | Prepend an element to a list, only if the list exists. | ||
| 2892 | |||
| 2893 | =over 4 | ||
| 2894 | |||
| 2895 | =item * key | ||
| 2896 | |||
| 2897 | =item * element [element ...] | ||
| 2898 | |||
| 2899 | =back | ||
| 2900 | |||
| 2901 | L<https://redis.io/commands/lpushx> | ||
| 2902 | |||
| 2903 | =cut | ||
| 2904 | |||
| 2905 | 0 | ▶ | method lpushx (@args) { |
|
Subroutine
lpushx: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2906 | 0 | $self->execute_command(qw(LPUSHX) => @args) | |
| 2907 | 16 | } | |
| 2908 | |||
| 2909 | =head2 lrange | ||
| 2910 | |||
| 2911 | Get a range of elements from a list. | ||
| 2912 | |||
| 2913 | =over 4 | ||
| 2914 | |||
| 2915 | =item * key | ||
| 2916 | |||
| 2917 | =item * start | ||
| 2918 | |||
| 2919 | =item * stop | ||
| 2920 | |||
| 2921 | =back | ||
| 2922 | |||
| 2923 | L<https://redis.io/commands/lrange> | ||
| 2924 | |||
| 2925 | =cut | ||
| 2926 | |||
| 2927 | 0 | ▶ | method lrange (@args) { |
|
Subroutine
lrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2928 | 0 | $self->execute_command(qw(LRANGE) => @args) | |
| 2929 | 16 | } | |
| 2930 | |||
| 2931 | =head2 lrem | ||
| 2932 | |||
| 2933 | Remove elements from a list. | ||
| 2934 | |||
| 2935 | =over 4 | ||
| 2936 | |||
| 2937 | =item * key | ||
| 2938 | |||
| 2939 | =item * count | ||
| 2940 | |||
| 2941 | =item * element | ||
| 2942 | |||
| 2943 | =back | ||
| 2944 | |||
| 2945 | L<https://redis.io/commands/lrem> | ||
| 2946 | |||
| 2947 | =cut | ||
| 2948 | |||
| 2949 | 0 | ▶ | method lrem (@args) { |
|
Subroutine
lrem: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2950 | 0 | $self->execute_command(qw(LREM) => @args) | |
| 2951 | 16 | } | |
| 2952 | |||
| 2953 | =head2 lset | ||
| 2954 | |||
| 2955 | Set the value of an element in a list by its index. | ||
| 2956 | |||
| 2957 | =over 4 | ||
| 2958 | |||
| 2959 | =item * key | ||
| 2960 | |||
| 2961 | =item * index | ||
| 2962 | |||
| 2963 | =item * element | ||
| 2964 | |||
| 2965 | =back | ||
| 2966 | |||
| 2967 | L<https://redis.io/commands/lset> | ||
| 2968 | |||
| 2969 | =cut | ||
| 2970 | |||
| 2971 | 0 | ▶ | method lset (@args) { |
|
Subroutine
lset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2972 | 0 | $self->execute_command(qw(LSET) => @args) | |
| 2973 | 16 | } | |
| 2974 | |||
| 2975 | =head2 ltrim | ||
| 2976 | |||
| 2977 | Trim a list to the specified range. | ||
| 2978 | |||
| 2979 | =over 4 | ||
| 2980 | |||
| 2981 | =item * key | ||
| 2982 | |||
| 2983 | =item * start | ||
| 2984 | |||
| 2985 | =item * stop | ||
| 2986 | |||
| 2987 | =back | ||
| 2988 | |||
| 2989 | L<https://redis.io/commands/ltrim> | ||
| 2990 | |||
| 2991 | =cut | ||
| 2992 | |||
| 2993 | 0 | ▶ | method ltrim (@args) { |
|
Subroutine
ltrim: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 2994 | 0 | $self->execute_command(qw(LTRIM) => @args) | |
| 2995 | 16 | } | |
| 2996 | |||
| 2997 | =head2 rpop | ||
| 2998 | |||
| 2999 | Remove and get the last elements in a list. | ||
| 3000 | |||
| 3001 | =over 4 | ||
| 3002 | |||
| 3003 | =item * key | ||
| 3004 | |||
| 3005 | =item * [count] | ||
| 3006 | |||
| 3007 | =back | ||
| 3008 | |||
| 3009 | L<https://redis.io/commands/rpop> | ||
| 3010 | |||
| 3011 | =cut | ||
| 3012 | |||
| 3013 | 0 | ▶ | method rpop (@args) { |
|
Subroutine
rpop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3014 | 0 | $self->execute_command(qw(RPOP) => @args) | |
| 3015 | 16 | } | |
| 3016 | |||
| 3017 | =head2 rpoplpush | ||
| 3018 | |||
| 3019 | Remove the last element in a list, prepend it to another list and return it. | ||
| 3020 | |||
| 3021 | =over 4 | ||
| 3022 | |||
| 3023 | =item * source | ||
| 3024 | |||
| 3025 | =item * destination | ||
| 3026 | |||
| 3027 | =back | ||
| 3028 | |||
| 3029 | L<https://redis.io/commands/rpoplpush> | ||
| 3030 | |||
| 3031 | =cut | ||
| 3032 | |||
| 3033 | 0 | ▶ | method rpoplpush (@args) { |
|
Subroutine
rpoplpush: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3034 | 0 | $self->execute_command(qw(RPOPLPUSH) => @args) | |
| 3035 | 16 | } | |
| 3036 | |||
| 3037 | =head2 rpush | ||
| 3038 | |||
| 3039 | Append one or multiple elements to a list. | ||
| 3040 | |||
| 3041 | =over 4 | ||
| 3042 | |||
| 3043 | =item * key | ||
| 3044 | |||
| 3045 | =item * element [element ...] | ||
| 3046 | |||
| 3047 | =back | ||
| 3048 | |||
| 3049 | L<https://redis.io/commands/rpush> | ||
| 3050 | |||
| 3051 | =cut | ||
| 3052 | |||
| 3053 | 0 | ▶ | method rpush (@args) { |
|
Subroutine
rpush: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3054 | 0 | $self->execute_command(qw(RPUSH) => @args) | |
| 3055 | 16 | } | |
| 3056 | |||
| 3057 | =head2 rpushx | ||
| 3058 | |||
| 3059 | Append an element to a list, only if the list exists. | ||
| 3060 | |||
| 3061 | =over 4 | ||
| 3062 | |||
| 3063 | =item * key | ||
| 3064 | |||
| 3065 | =item * element [element ...] | ||
| 3066 | |||
| 3067 | =back | ||
| 3068 | |||
| 3069 | L<https://redis.io/commands/rpushx> | ||
| 3070 | |||
| 3071 | =cut | ||
| 3072 | |||
| 3073 | 0 | ▶ | method rpushx (@args) { |
|
Subroutine
rpushx: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3074 | 0 | $self->execute_command(qw(RPUSHX) => @args) | |
| 3075 | 16 | } | |
| 3076 | |||
| 3077 | =head1 METHODS - Pubsub | ||
| 3078 | |||
| 3079 | =head2 psubscribe | ||
| 3080 | |||
| 3081 | Listen for messages published to channels matching the given patterns. | ||
| 3082 | |||
| 3083 | =over 4 | ||
| 3084 | |||
| 3085 | =item * pattern [pattern ...] | ||
| 3086 | |||
| 3087 | =back | ||
| 3088 | |||
| 3089 | L<https://redis.io/commands/psubscribe> | ||
| 3090 | |||
| 3091 | =cut | ||
| 3092 | |||
| 3093 | 0 | ▶ | method psubscribe (@args) { |
|
Subroutine
psubscribe: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3094 | 0 | $self->execute_command(qw(PSUBSCRIBE) => @args) | |
| 3095 | 16 | } | |
| 3096 | |||
| 3097 | =head2 publish | ||
| 3098 | |||
| 3099 | Post a message to a channel. | ||
| 3100 | |||
| 3101 | =over 4 | ||
| 3102 | |||
| 3103 | =item * channel | ||
| 3104 | |||
| 3105 | =item * message | ||
| 3106 | |||
| 3107 | =back | ||
| 3108 | |||
| 3109 | L<https://redis.io/commands/publish> | ||
| 3110 | |||
| 3111 | =cut | ||
| 3112 | |||
| 3113 | 0 | ▶ | method publish (@args) { |
|
Subroutine
publish: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3114 | 0 | $self->execute_command(qw(PUBLISH) => @args) | |
| 3115 | 16 | } | |
| 3116 | |||
| 3117 | =head2 pubsub_channels | ||
| 3118 | |||
| 3119 | List active channels. | ||
| 3120 | |||
| 3121 | =over 4 | ||
| 3122 | |||
| 3123 | =item * [pattern] | ||
| 3124 | |||
| 3125 | =back | ||
| 3126 | |||
| 3127 | L<https://redis.io/commands/pubsub-channels> | ||
| 3128 | |||
| 3129 | =cut | ||
| 3130 | |||
| 3131 | 0 | ▶ | method pubsub_channels (@args) { |
|
Subroutine
pubsub_channels: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3132 | 0 | $self->execute_command(qw(PUBSUB CHANNELS) => @args) | |
| 3133 | 16 | } | |
| 3134 | |||
| 3135 | =head2 pubsub_numpat | ||
| 3136 | |||
| 3137 | Get the count of unique patterns pattern subscriptions. | ||
| 3138 | |||
| 3139 | L<https://redis.io/commands/pubsub-numpat> | ||
| 3140 | |||
| 3141 | =cut | ||
| 3142 | |||
| 3143 | 0 | ▶ | method pubsub_numpat (@args) { |
|
Subroutine
pubsub_numpat: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3144 | 0 | $self->execute_command(qw(PUBSUB NUMPAT) => @args) | |
| 3145 | 16 | } | |
| 3146 | |||
| 3147 | =head2 pubsub_numsub | ||
| 3148 | |||
| 3149 | Get the count of subscribers for channels. | ||
| 3150 | |||
| 3151 | =over 4 | ||
| 3152 | |||
| 3153 | =item * [channel [channel ...]] | ||
| 3154 | |||
| 3155 | =back | ||
| 3156 | |||
| 3157 | L<https://redis.io/commands/pubsub-numsub> | ||
| 3158 | |||
| 3159 | =cut | ||
| 3160 | |||
| 3161 | 0 | ▶ | method pubsub_numsub (@args) { |
|
Subroutine
pubsub_numsub: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3162 | 0 | $self->execute_command(qw(PUBSUB NUMSUB) => @args) | |
| 3163 | 16 | } | |
| 3164 | |||
| 3165 | =head2 pubsub_shardchannels | ||
| 3166 | |||
| 3167 | List active shard channels. | ||
| 3168 | |||
| 3169 | =over 4 | ||
| 3170 | |||
| 3171 | =item * [pattern] | ||
| 3172 | |||
| 3173 | =back | ||
| 3174 | |||
| 3175 | L<https://redis.io/commands/pubsub-shardchannels> | ||
| 3176 | |||
| 3177 | =cut | ||
| 3178 | |||
| 3179 | 0 | ▶ | method pubsub_shardchannels (@args) { |
|
Subroutine
pubsub_shardchannels: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3180 | 0 | $self->execute_command(qw(PUBSUB SHARDCHANNELS) => @args) | |
| 3181 | 16 | } | |
| 3182 | |||
| 3183 | =head2 pubsub_shardnumsub | ||
| 3184 | |||
| 3185 | Get the count of subscribers for shard channels. | ||
| 3186 | |||
| 3187 | =over 4 | ||
| 3188 | |||
| 3189 | =item * [channel [channel ...]] | ||
| 3190 | |||
| 3191 | =back | ||
| 3192 | |||
| 3193 | L<https://redis.io/commands/pubsub-shardnumsub> | ||
| 3194 | |||
| 3195 | =cut | ||
| 3196 | |||
| 3197 | 0 | ▶ | method pubsub_shardnumsub (@args) { |
|
Subroutine
pubsub_shardnumsub: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3198 | 0 | $self->execute_command(qw(PUBSUB SHARDNUMSUB) => @args) | |
| 3199 | 16 | } | |
| 3200 | |||
| 3201 | =head2 punsubscribe | ||
| 3202 | |||
| 3203 | Stop listening for messages posted to channels matching the given patterns. | ||
| 3204 | |||
| 3205 | =over 4 | ||
| 3206 | |||
| 3207 | =item * [pattern [pattern ...]] | ||
| 3208 | |||
| 3209 | =back | ||
| 3210 | |||
| 3211 | L<https://redis.io/commands/punsubscribe> | ||
| 3212 | |||
| 3213 | =cut | ||
| 3214 | |||
| 3215 | 0 | ▶ | method punsubscribe (@args) { |
|
Subroutine
punsubscribe: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3216 | 0 | $self->execute_command(qw(PUNSUBSCRIBE) => @args) | |
| 3217 | 16 | } | |
| 3218 | |||
| 3219 | =head2 spublish | ||
| 3220 | |||
| 3221 | Post a message to a shard channel. | ||
| 3222 | |||
| 3223 | =over 4 | ||
| 3224 | |||
| 3225 | =item * channel | ||
| 3226 | |||
| 3227 | =item * message | ||
| 3228 | |||
| 3229 | =back | ||
| 3230 | |||
| 3231 | L<https://redis.io/commands/spublish> | ||
| 3232 | |||
| 3233 | =cut | ||
| 3234 | |||
| 3235 | 0 | ▶ | method spublish (@args) { |
|
Subroutine
spublish: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3236 | 0 | $self->execute_command(qw(SPUBLISH) => @args) | |
| 3237 | 16 | } | |
| 3238 | |||
| 3239 | =head2 ssubscribe | ||
| 3240 | |||
| 3241 | Listen for messages published to the given shard channels. | ||
| 3242 | |||
| 3243 | =over 4 | ||
| 3244 | |||
| 3245 | =item * channel [channel ...] | ||
| 3246 | |||
| 3247 | =back | ||
| 3248 | |||
| 3249 | L<https://redis.io/commands/ssubscribe> | ||
| 3250 | |||
| 3251 | =cut | ||
| 3252 | |||
| 3253 | 0 | ▶ | method ssubscribe (@args) { |
|
Subroutine
ssubscribe: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3254 | 0 | $self->execute_command(qw(SSUBSCRIBE) => @args) | |
| 3255 | 16 | } | |
| 3256 | |||
| 3257 | =head2 subscribe | ||
| 3258 | |||
| 3259 | Listen for messages published to the given channels. | ||
| 3260 | |||
| 3261 | =over 4 | ||
| 3262 | |||
| 3263 | =item * channel [channel ...] | ||
| 3264 | |||
| 3265 | =back | ||
| 3266 | |||
| 3267 | L<https://redis.io/commands/subscribe> | ||
| 3268 | |||
| 3269 | =cut | ||
| 3270 | |||
| 3271 | 0 | ▶ | method subscribe (@args) { |
|
Subroutine
subscribe: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3272 | 0 | $self->execute_command(qw(SUBSCRIBE) => @args) | |
| 3273 | 16 | } | |
| 3274 | |||
| 3275 | =head2 sunsubscribe | ||
| 3276 | |||
| 3277 | Stop listening for messages posted to the given shard channels. | ||
| 3278 | |||
| 3279 | =over 4 | ||
| 3280 | |||
| 3281 | =item * [channel [channel ...]] | ||
| 3282 | |||
| 3283 | =back | ||
| 3284 | |||
| 3285 | L<https://redis.io/commands/sunsubscribe> | ||
| 3286 | |||
| 3287 | =cut | ||
| 3288 | |||
| 3289 | 0 | ▶ | method sunsubscribe (@args) { |
|
Subroutine
sunsubscribe: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3290 | 0 | $self->execute_command(qw(SUNSUBSCRIBE) => @args) | |
| 3291 | 16 | } | |
| 3292 | |||
| 3293 | =head2 unsubscribe | ||
| 3294 | |||
| 3295 | Stop listening for messages posted to the given channels. | ||
| 3296 | |||
| 3297 | =over 4 | ||
| 3298 | |||
| 3299 | =item * [channel [channel ...]] | ||
| 3300 | |||
| 3301 | =back | ||
| 3302 | |||
| 3303 | L<https://redis.io/commands/unsubscribe> | ||
| 3304 | |||
| 3305 | =cut | ||
| 3306 | |||
| 3307 | 0 | ▶ | method unsubscribe (@args) { |
|
Subroutine
unsubscribe: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3308 | 0 | $self->execute_command(qw(UNSUBSCRIBE) => @args) | |
| 3309 | 16 | } | |
| 3310 | |||
| 3311 | =head1 METHODS - Scripting | ||
| 3312 | |||
| 3313 | =head2 eval | ||
| 3314 | |||
| 3315 | Execute a Lua script server side. | ||
| 3316 | |||
| 3317 | =over 4 | ||
| 3318 | |||
| 3319 | =item * script | ||
| 3320 | |||
| 3321 | =item * numkeys | ||
| 3322 | |||
| 3323 | =item * [key [key ...]] | ||
| 3324 | |||
| 3325 | =item * [arg [arg ...]] | ||
| 3326 | |||
| 3327 | =back | ||
| 3328 | |||
| 3329 | L<https://redis.io/commands/eval> | ||
| 3330 | |||
| 3331 | =cut | ||
| 3332 | |||
| 3333 | 0 | ▶ | method eval (@args) { |
|
Subroutine
eval: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3334 | 0 | $self->execute_command(qw(EVAL) => @args) | |
| 3335 | 16 | } | |
| 3336 | |||
| 3337 | =head2 eval_ro | ||
| 3338 | |||
| 3339 | Execute a read-only Lua script server side. | ||
| 3340 | |||
| 3341 | =over 4 | ||
| 3342 | |||
| 3343 | =item * script | ||
| 3344 | |||
| 3345 | =item * numkeys | ||
| 3346 | |||
| 3347 | =item * key [key ...] | ||
| 3348 | |||
| 3349 | =item * arg [arg ...] | ||
| 3350 | |||
| 3351 | =back | ||
| 3352 | |||
| 3353 | L<https://redis.io/commands/eval-ro> | ||
| 3354 | |||
| 3355 | =cut | ||
| 3356 | |||
| 3357 | 0 | ▶ | method eval_ro (@args) { |
|
Subroutine
eval_ro: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3358 | 0 | $self->execute_command(qw(EVAL_RO) => @args) | |
| 3359 | 16 | } | |
| 3360 | |||
| 3361 | =head2 evalsha | ||
| 3362 | |||
| 3363 | Execute a Lua script server side. | ||
| 3364 | |||
| 3365 | =over 4 | ||
| 3366 | |||
| 3367 | =item * sha1 | ||
| 3368 | |||
| 3369 | =item * numkeys | ||
| 3370 | |||
| 3371 | =item * [key [key ...]] | ||
| 3372 | |||
| 3373 | =item * [arg [arg ...]] | ||
| 3374 | |||
| 3375 | =back | ||
| 3376 | |||
| 3377 | L<https://redis.io/commands/evalsha> | ||
| 3378 | |||
| 3379 | =cut | ||
| 3380 | |||
| 3381 | 0 | ▶ | method evalsha (@args) { |
|
Subroutine
evalsha: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3382 | 0 | $self->execute_command(qw(EVALSHA) => @args) | |
| 3383 | 16 | } | |
| 3384 | |||
| 3385 | =head2 evalsha_ro | ||
| 3386 | |||
| 3387 | Execute a read-only Lua script server side. | ||
| 3388 | |||
| 3389 | =over 4 | ||
| 3390 | |||
| 3391 | =item * sha1 | ||
| 3392 | |||
| 3393 | =item * numkeys | ||
| 3394 | |||
| 3395 | =item * key [key ...] | ||
| 3396 | |||
| 3397 | =item * arg [arg ...] | ||
| 3398 | |||
| 3399 | =back | ||
| 3400 | |||
| 3401 | L<https://redis.io/commands/evalsha-ro> | ||
| 3402 | |||
| 3403 | =cut | ||
| 3404 | |||
| 3405 | 0 | ▶ | method evalsha_ro (@args) { |
|
Subroutine
evalsha_ro: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3406 | 0 | $self->execute_command(qw(EVALSHA_RO) => @args) | |
| 3407 | 16 | } | |
| 3408 | |||
| 3409 | =head2 fcall | ||
| 3410 | |||
| 3411 | Invoke a function. | ||
| 3412 | |||
| 3413 | =over 4 | ||
| 3414 | |||
| 3415 | =item * function | ||
| 3416 | |||
| 3417 | =item * numkeys | ||
| 3418 | |||
| 3419 | =item * key [key ...] | ||
| 3420 | |||
| 3421 | =item * arg [arg ...] | ||
| 3422 | |||
| 3423 | =back | ||
| 3424 | |||
| 3425 | L<https://redis.io/commands/fcall> | ||
| 3426 | |||
| 3427 | =cut | ||
| 3428 | |||
| 3429 | 0 | ▶ | method fcall (@args) { |
|
Subroutine
fcall: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3430 | 0 | $self->execute_command(qw(FCALL) => @args) | |
| 3431 | 16 | } | |
| 3432 | |||
| 3433 | =head2 fcall_ro | ||
| 3434 | |||
| 3435 | Invoke a read-only function. | ||
| 3436 | |||
| 3437 | =over 4 | ||
| 3438 | |||
| 3439 | =item * function | ||
| 3440 | |||
| 3441 | =item * numkeys | ||
| 3442 | |||
| 3443 | =item * key [key ...] | ||
| 3444 | |||
| 3445 | =item * arg [arg ...] | ||
| 3446 | |||
| 3447 | =back | ||
| 3448 | |||
| 3449 | L<https://redis.io/commands/fcall-ro> | ||
| 3450 | |||
| 3451 | =cut | ||
| 3452 | |||
| 3453 | 0 | ▶ | method fcall_ro (@args) { |
|
Subroutine
fcall_ro: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3454 | 0 | $self->execute_command(qw(FCALL_RO) => @args) | |
| 3455 | 16 | } | |
| 3456 | |||
| 3457 | =head2 function_delete | ||
| 3458 | |||
| 3459 | Delete a function by name. | ||
| 3460 | |||
| 3461 | =over 4 | ||
| 3462 | |||
| 3463 | =item * library-name | ||
| 3464 | |||
| 3465 | =back | ||
| 3466 | |||
| 3467 | L<https://redis.io/commands/function-delete> | ||
| 3468 | |||
| 3469 | =cut | ||
| 3470 | |||
| 3471 | 0 | ▶ | method function_delete (@args) { |
|
Subroutine
function_delete: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3472 | 0 | $self->execute_command(qw(FUNCTION DELETE) => @args) | |
| 3473 | 16 | } | |
| 3474 | |||
| 3475 | =head2 function_dump | ||
| 3476 | |||
| 3477 | Dump all functions into a serialized binary payload. | ||
| 3478 | |||
| 3479 | L<https://redis.io/commands/function-dump> | ||
| 3480 | |||
| 3481 | =cut | ||
| 3482 | |||
| 3483 | 0 | ▶ | method function_dump (@args) { |
|
Subroutine
function_dump: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3484 | 0 | $self->execute_command(qw(FUNCTION DUMP) => @args) | |
| 3485 | 16 | } | |
| 3486 | |||
| 3487 | =head2 function_flush | ||
| 3488 | |||
| 3489 | Deleting all functions. | ||
| 3490 | |||
| 3491 | =over 4 | ||
| 3492 | |||
| 3493 | =item * [ASYNC|SYNC] | ||
| 3494 | |||
| 3495 | =back | ||
| 3496 | |||
| 3497 | L<https://redis.io/commands/function-flush> | ||
| 3498 | |||
| 3499 | =cut | ||
| 3500 | |||
| 3501 | 0 | ▶ | method function_flush (@args) { |
|
Subroutine
function_flush: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3502 | 0 | $self->execute_command(qw(FUNCTION FLUSH) => @args) | |
| 3503 | 16 | } | |
| 3504 | |||
| 3505 | =head2 function_kill | ||
| 3506 | |||
| 3507 | Kill the function currently in execution. | ||
| 3508 | |||
| 3509 | L<https://redis.io/commands/function-kill> | ||
| 3510 | |||
| 3511 | =cut | ||
| 3512 | |||
| 3513 | 0 | ▶ | method function_kill (@args) { |
|
Subroutine
function_kill: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3514 | 0 | $self->execute_command(qw(FUNCTION KILL) => @args) | |
| 3515 | 16 | } | |
| 3516 | |||
| 3517 | =head2 function_list | ||
| 3518 | |||
| 3519 | List information about all the functions. | ||
| 3520 | |||
| 3521 | =over 4 | ||
| 3522 | |||
| 3523 | =item * [LIBRARYNAME library-name-pattern] | ||
| 3524 | |||
| 3525 | =item * [WITHCODE] | ||
| 3526 | |||
| 3527 | =back | ||
| 3528 | |||
| 3529 | L<https://redis.io/commands/function-list> | ||
| 3530 | |||
| 3531 | =cut | ||
| 3532 | |||
| 3533 | 0 | ▶ | method function_list (@args) { |
|
Subroutine
function_list: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3534 | 0 | $self->execute_command(qw(FUNCTION LIST) => @args) | |
| 3535 | 16 | } | |
| 3536 | |||
| 3537 | =head2 function_load | ||
| 3538 | |||
| 3539 | Create a function with the given arguments (name, code, description). | ||
| 3540 | |||
| 3541 | =over 4 | ||
| 3542 | |||
| 3543 | =item * engine-name | ||
| 3544 | |||
| 3545 | =item * library-name | ||
| 3546 | |||
| 3547 | =item * [REPLACE] | ||
| 3548 | |||
| 3549 | =item * [DESCRIPTION library-description] | ||
| 3550 | |||
| 3551 | =item * function-code | ||
| 3552 | |||
| 3553 | =back | ||
| 3554 | |||
| 3555 | L<https://redis.io/commands/function-load> | ||
| 3556 | |||
| 3557 | =cut | ||
| 3558 | |||
| 3559 | 0 | ▶ | method function_load (@args) { |
|
Subroutine
function_load: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3560 | 0 | $self->execute_command(qw(FUNCTION LOAD) => @args) | |
| 3561 | 16 | } | |
| 3562 | |||
| 3563 | =head2 function_restore | ||
| 3564 | |||
| 3565 | Restore all the functions on the given payload. | ||
| 3566 | |||
| 3567 | =over 4 | ||
| 3568 | |||
| 3569 | =item * serialized-value | ||
| 3570 | |||
| 3571 | =item * [FLUSH|APPEND|REPLACE] | ||
| 3572 | |||
| 3573 | =back | ||
| 3574 | |||
| 3575 | L<https://redis.io/commands/function-restore> | ||
| 3576 | |||
| 3577 | =cut | ||
| 3578 | |||
| 3579 | 0 | ▶ | method function_restore (@args) { |
|
Subroutine
function_restore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3580 | 0 | $self->execute_command(qw(FUNCTION RESTORE) => @args) | |
| 3581 | 16 | } | |
| 3582 | |||
| 3583 | =head2 function_stats | ||
| 3584 | |||
| 3585 | Return information about the function currently running (name, description, duration). | ||
| 3586 | |||
| 3587 | L<https://redis.io/commands/function-stats> | ||
| 3588 | |||
| 3589 | =cut | ||
| 3590 | |||
| 3591 | 0 | ▶ | method function_stats (@args) { |
|
Subroutine
function_stats: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3592 | 0 | $self->execute_command(qw(FUNCTION STATS) => @args) | |
| 3593 | 16 | } | |
| 3594 | |||
| 3595 | =head2 script_debug | ||
| 3596 | |||
| 3597 | Set the debug mode for executed scripts. | ||
| 3598 | |||
| 3599 | =over 4 | ||
| 3600 | |||
| 3601 | =item * YES|SYNC|NO | ||
| 3602 | |||
| 3603 | =back | ||
| 3604 | |||
| 3605 | L<https://redis.io/commands/script-debug> | ||
| 3606 | |||
| 3607 | =cut | ||
| 3608 | |||
| 3609 | 0 | ▶ | method script_debug (@args) { |
|
Subroutine
script_debug: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3610 | 0 | $self->execute_command(qw(SCRIPT DEBUG) => @args) | |
| 3611 | 16 | } | |
| 3612 | |||
| 3613 | =head2 script_exists | ||
| 3614 | |||
| 3615 | Check existence of scripts in the script cache. | ||
| 3616 | |||
| 3617 | =over 4 | ||
| 3618 | |||
| 3619 | =item * sha1 [sha1 ...] | ||
| 3620 | |||
| 3621 | =back | ||
| 3622 | |||
| 3623 | L<https://redis.io/commands/script-exists> | ||
| 3624 | |||
| 3625 | =cut | ||
| 3626 | |||
| 3627 | 0 | ▶ | method script_exists (@args) { |
|
Subroutine
script_exists: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3628 | 0 | $self->execute_command(qw(SCRIPT EXISTS) => @args) | |
| 3629 | 16 | } | |
| 3630 | |||
| 3631 | =head2 script_flush | ||
| 3632 | |||
| 3633 | Remove all the scripts from the script cache. | ||
| 3634 | |||
| 3635 | =over 4 | ||
| 3636 | |||
| 3637 | =item * [ASYNC|SYNC] | ||
| 3638 | |||
| 3639 | =back | ||
| 3640 | |||
| 3641 | L<https://redis.io/commands/script-flush> | ||
| 3642 | |||
| 3643 | =cut | ||
| 3644 | |||
| 3645 | 0 | ▶ | method script_flush (@args) { |
|
Subroutine
script_flush: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3646 | 0 | $self->execute_command(qw(SCRIPT FLUSH) => @args) | |
| 3647 | 16 | } | |
| 3648 | |||
| 3649 | =head2 script_kill | ||
| 3650 | |||
| 3651 | Kill the script currently in execution. | ||
| 3652 | |||
| 3653 | L<https://redis.io/commands/script-kill> | ||
| 3654 | |||
| 3655 | =cut | ||
| 3656 | |||
| 3657 | 0 | ▶ | method script_kill (@args) { |
|
Subroutine
script_kill: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3658 | 0 | $self->execute_command(qw(SCRIPT KILL) => @args) | |
| 3659 | 16 | } | |
| 3660 | |||
| 3661 | =head2 script_load | ||
| 3662 | |||
| 3663 | Load the specified Lua script into the script cache. | ||
| 3664 | |||
| 3665 | =over 4 | ||
| 3666 | |||
| 3667 | =item * script | ||
| 3668 | |||
| 3669 | =back | ||
| 3670 | |||
| 3671 | L<https://redis.io/commands/script-load> | ||
| 3672 | |||
| 3673 | =cut | ||
| 3674 | |||
| 3675 | 0 | ▶ | method script_load (@args) { |
|
Subroutine
script_load: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3676 | 0 | $self->execute_command(qw(SCRIPT LOAD) => @args) | |
| 3677 | 16 | } | |
| 3678 | |||
| 3679 | =head1 METHODS - Server | ||
| 3680 | |||
| 3681 | =head2 acl_cat | ||
| 3682 | |||
| 3683 | List the ACL categories or the commands inside a category. | ||
| 3684 | |||
| 3685 | =over 4 | ||
| 3686 | |||
| 3687 | =item * [categoryname] | ||
| 3688 | |||
| 3689 | =back | ||
| 3690 | |||
| 3691 | L<https://redis.io/commands/acl-cat> | ||
| 3692 | |||
| 3693 | =cut | ||
| 3694 | |||
| 3695 | 0 | ▶ | method acl_cat (@args) { |
|
Subroutine
acl_cat: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3696 | 0 | $self->execute_command(qw(ACL CAT) => @args) | |
| 3697 | 16 | } | |
| 3698 | |||
| 3699 | =head2 acl_deluser | ||
| 3700 | |||
| 3701 | Remove the specified ACL users and the associated rules. | ||
| 3702 | |||
| 3703 | =over 4 | ||
| 3704 | |||
| 3705 | =item * username [username ...] | ||
| 3706 | |||
| 3707 | =back | ||
| 3708 | |||
| 3709 | L<https://redis.io/commands/acl-deluser> | ||
| 3710 | |||
| 3711 | =cut | ||
| 3712 | |||
| 3713 | 0 | ▶ | method acl_deluser (@args) { |
|
Subroutine
acl_deluser: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3714 | 0 | $self->execute_command(qw(ACL DELUSER) => @args) | |
| 3715 | 16 | } | |
| 3716 | |||
| 3717 | =head2 acl_dryrun | ||
| 3718 | |||
| 3719 | Returns whether the user can execute the given command without executing the command. | ||
| 3720 | |||
| 3721 | =over 4 | ||
| 3722 | |||
| 3723 | =item * username | ||
| 3724 | |||
| 3725 | =item * command | ||
| 3726 | |||
| 3727 | =item * [arg [arg ...]] | ||
| 3728 | |||
| 3729 | =back | ||
| 3730 | |||
| 3731 | L<https://redis.io/commands/acl-dryrun> | ||
| 3732 | |||
| 3733 | =cut | ||
| 3734 | |||
| 3735 | 0 | ▶ | method acl_dryrun (@args) { |
|
Subroutine
acl_dryrun: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3736 | 0 | $self->execute_command(qw(ACL DRYRUN) => @args) | |
| 3737 | 16 | } | |
| 3738 | |||
| 3739 | =head2 acl_genpass | ||
| 3740 | |||
| 3741 | Generate a pseudorandom secure password to use for ACL users. | ||
| 3742 | |||
| 3743 | =over 4 | ||
| 3744 | |||
| 3745 | =item * [bits] | ||
| 3746 | |||
| 3747 | =back | ||
| 3748 | |||
| 3749 | L<https://redis.io/commands/acl-genpass> | ||
| 3750 | |||
| 3751 | =cut | ||
| 3752 | |||
| 3753 | 0 | ▶ | method acl_genpass (@args) { |
|
Subroutine
acl_genpass: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3754 | 0 | $self->execute_command(qw(ACL GENPASS) => @args) | |
| 3755 | 16 | } | |
| 3756 | |||
| 3757 | =head2 acl_getuser | ||
| 3758 | |||
| 3759 | Get the rules for a specific ACL user. | ||
| 3760 | |||
| 3761 | =over 4 | ||
| 3762 | |||
| 3763 | =item * username | ||
| 3764 | |||
| 3765 | =back | ||
| 3766 | |||
| 3767 | L<https://redis.io/commands/acl-getuser> | ||
| 3768 | |||
| 3769 | =cut | ||
| 3770 | |||
| 3771 | 0 | ▶ | method acl_getuser (@args) { |
|
Subroutine
acl_getuser: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3772 | 0 | $self->execute_command(qw(ACL GETUSER) => @args) | |
| 3773 | 16 | } | |
| 3774 | |||
| 3775 | =head2 acl_list | ||
| 3776 | |||
| 3777 | List the current ACL rules in ACL config file format. | ||
| 3778 | |||
| 3779 | L<https://redis.io/commands/acl-list> | ||
| 3780 | |||
| 3781 | =cut | ||
| 3782 | |||
| 3783 | 0 | ▶ | method acl_list (@args) { |
|
Subroutine
acl_list: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3784 | 0 | $self->execute_command(qw(ACL LIST) => @args) | |
| 3785 | 16 | } | |
| 3786 | |||
| 3787 | =head2 acl_load | ||
| 3788 | |||
| 3789 | Reload the ACLs from the configured ACL file. | ||
| 3790 | |||
| 3791 | L<https://redis.io/commands/acl-load> | ||
| 3792 | |||
| 3793 | =cut | ||
| 3794 | |||
| 3795 | 0 | ▶ | method acl_load (@args) { |
|
Subroutine
acl_load: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3796 | 0 | $self->execute_command(qw(ACL LOAD) => @args) | |
| 3797 | 16 | } | |
| 3798 | |||
| 3799 | =head2 acl_log | ||
| 3800 | |||
| 3801 | List latest events denied because of ACLs in place. | ||
| 3802 | |||
| 3803 | =over 4 | ||
| 3804 | |||
| 3805 | =item * [count|RESET] | ||
| 3806 | |||
| 3807 | =back | ||
| 3808 | |||
| 3809 | L<https://redis.io/commands/acl-log> | ||
| 3810 | |||
| 3811 | =cut | ||
| 3812 | |||
| 3813 | 0 | ▶ | method acl_log (@args) { |
|
Subroutine
acl_log: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3814 | 0 | $self->execute_command(qw(ACL LOG) => @args) | |
| 3815 | 16 | } | |
| 3816 | |||
| 3817 | =head2 acl_save | ||
| 3818 | |||
| 3819 | Save the current ACL rules in the configured ACL file. | ||
| 3820 | |||
| 3821 | L<https://redis.io/commands/acl-save> | ||
| 3822 | |||
| 3823 | =cut | ||
| 3824 | |||
| 3825 | 0 | ▶ | method acl_save (@args) { |
|
Subroutine
acl_save: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3826 | 0 | $self->execute_command(qw(ACL SAVE) => @args) | |
| 3827 | 16 | } | |
| 3828 | |||
| 3829 | =head2 acl_setuser | ||
| 3830 | |||
| 3831 | Modify or create the rules for a specific ACL user. | ||
| 3832 | |||
| 3833 | =over 4 | ||
| 3834 | |||
| 3835 | =item * username | ||
| 3836 | |||
| 3837 | =item * [rule [rule ...]] | ||
| 3838 | |||
| 3839 | =back | ||
| 3840 | |||
| 3841 | L<https://redis.io/commands/acl-setuser> | ||
| 3842 | |||
| 3843 | =cut | ||
| 3844 | |||
| 3845 | 0 | ▶ | method acl_setuser (@args) { |
|
Subroutine
acl_setuser: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3846 | 0 | $self->execute_command(qw(ACL SETUSER) => @args) | |
| 3847 | 16 | } | |
| 3848 | |||
| 3849 | =head2 acl_users | ||
| 3850 | |||
| 3851 | List the username of all the configured ACL rules. | ||
| 3852 | |||
| 3853 | L<https://redis.io/commands/acl-users> | ||
| 3854 | |||
| 3855 | =cut | ||
| 3856 | |||
| 3857 | 0 | ▶ | method acl_users (@args) { |
|
Subroutine
acl_users: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3858 | 0 | $self->execute_command(qw(ACL USERS) => @args) | |
| 3859 | 16 | } | |
| 3860 | |||
| 3861 | =head2 acl_whoami | ||
| 3862 | |||
| 3863 | Return the name of the user associated to the current connection. | ||
| 3864 | |||
| 3865 | L<https://redis.io/commands/acl-whoami> | ||
| 3866 | |||
| 3867 | =cut | ||
| 3868 | |||
| 3869 | 0 | ▶ | method acl_whoami (@args) { |
|
Subroutine
acl_whoami: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3870 | 0 | $self->execute_command(qw(ACL WHOAMI) => @args) | |
| 3871 | 16 | } | |
| 3872 | |||
| 3873 | =head2 bgrewriteaof | ||
| 3874 | |||
| 3875 | Asynchronously rewrite the append-only file. | ||
| 3876 | |||
| 3877 | L<https://redis.io/commands/bgrewriteaof> | ||
| 3878 | |||
| 3879 | =cut | ||
| 3880 | |||
| 3881 | 0 | ▶ | method bgrewriteaof (@args) { |
|
Subroutine
bgrewriteaof: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3882 | 0 | $self->execute_command(qw(BGREWRITEAOF) => @args) | |
| 3883 | 16 | } | |
| 3884 | |||
| 3885 | =head2 bgsave | ||
| 3886 | |||
| 3887 | Asynchronously save the dataset to disk. | ||
| 3888 | |||
| 3889 | =over 4 | ||
| 3890 | |||
| 3891 | =item * [SCHEDULE] | ||
| 3892 | |||
| 3893 | =back | ||
| 3894 | |||
| 3895 | L<https://redis.io/commands/bgsave> | ||
| 3896 | |||
| 3897 | =cut | ||
| 3898 | |||
| 3899 | 0 | ▶ | method bgsave (@args) { |
|
Subroutine
bgsave: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3900 | 0 | $self->execute_command(qw(BGSAVE) => @args) | |
| 3901 | 16 | } | |
| 3902 | |||
| 3903 | =head2 command | ||
| 3904 | |||
| 3905 | Get array of Redis command details. | ||
| 3906 | |||
| 3907 | L<https://redis.io/commands/command> | ||
| 3908 | |||
| 3909 | =cut | ||
| 3910 | |||
| 3911 | 0 | ▶ | method command (@args) { |
|
Subroutine
command: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3912 | 0 | $self->execute_command(qw(COMMAND) => @args) | |
| 3913 | 16 | } | |
| 3914 | |||
| 3915 | =head2 command_count | ||
| 3916 | |||
| 3917 | Get total number of Redis commands. | ||
| 3918 | |||
| 3919 | L<https://redis.io/commands/command-count> | ||
| 3920 | |||
| 3921 | =cut | ||
| 3922 | |||
| 3923 | 0 | ▶ | method command_count (@args) { |
|
Subroutine
command_count: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3924 | 0 | $self->execute_command(qw(COMMAND COUNT) => @args) | |
| 3925 | 16 | } | |
| 3926 | |||
| 3927 | =head2 command_docs | ||
| 3928 | |||
| 3929 | Get array of specific Redis command documentation. | ||
| 3930 | |||
| 3931 | =over 4 | ||
| 3932 | |||
| 3933 | =item * [command-name [command-name ...]] | ||
| 3934 | |||
| 3935 | =back | ||
| 3936 | |||
| 3937 | L<https://redis.io/commands/command-docs> | ||
| 3938 | |||
| 3939 | =cut | ||
| 3940 | |||
| 3941 | 0 | ▶ | method command_docs (@args) { |
|
Subroutine
command_docs: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3942 | 0 | $self->execute_command(qw(COMMAND DOCS) => @args) | |
| 3943 | 16 | } | |
| 3944 | |||
| 3945 | =head2 command_getkeys | ||
| 3946 | |||
| 3947 | Extract keys given a full Redis command. | ||
| 3948 | |||
| 3949 | L<https://redis.io/commands/command-getkeys> | ||
| 3950 | |||
| 3951 | =cut | ||
| 3952 | |||
| 3953 | 0 | ▶ | method command_getkeys (@args) { |
|
Subroutine
command_getkeys: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3954 | 0 | $self->execute_command(qw(COMMAND GETKEYS) => @args) | |
| 3955 | 16 | } | |
| 3956 | |||
| 3957 | =head2 command_getkeysandflags | ||
| 3958 | |||
| 3959 | Extract keys given a full Redis command. | ||
| 3960 | |||
| 3961 | L<https://redis.io/commands/command-getkeysandflags> | ||
| 3962 | |||
| 3963 | =cut | ||
| 3964 | |||
| 3965 | 0 | ▶ | method command_getkeysandflags (@args) { |
|
Subroutine
command_getkeysandflags: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3966 | 0 | $self->execute_command(qw(COMMAND GETKEYSANDFLAGS) => @args) | |
| 3967 | 16 | } | |
| 3968 | |||
| 3969 | =head2 command_info | ||
| 3970 | |||
| 3971 | Get array of specific Redis command details, or all when no argument is given. | ||
| 3972 | |||
| 3973 | =over 4 | ||
| 3974 | |||
| 3975 | =item * [command-name [command-name ...]] | ||
| 3976 | |||
| 3977 | =back | ||
| 3978 | |||
| 3979 | L<https://redis.io/commands/command-info> | ||
| 3980 | |||
| 3981 | =cut | ||
| 3982 | |||
| 3983 | 0 | ▶ | method command_info (@args) { |
|
Subroutine
command_info: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 3984 | 0 | $self->execute_command(qw(COMMAND INFO) => @args) | |
| 3985 | 16 | } | |
| 3986 | |||
| 3987 | =head2 command_list | ||
| 3988 | |||
| 3989 | Get an array of Redis command names. | ||
| 3990 | |||
| 3991 | =over 4 | ||
| 3992 | |||
| 3993 | =item * [FILTERBY MODULE module-name|ACLCAT category|PATTERN pattern] | ||
| 3994 | |||
| 3995 | =back | ||
| 3996 | |||
| 3997 | L<https://redis.io/commands/command-list> | ||
| 3998 | |||
| 3999 | =cut | ||
| 4000 | |||
| 4001 | 0 | ▶ | method command_list (@args) { |
|
Subroutine
command_list: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4002 | 0 | $self->execute_command(qw(COMMAND LIST) => @args) | |
| 4003 | 16 | } | |
| 4004 | |||
| 4005 | =head2 config_get | ||
| 4006 | |||
| 4007 | Get the values of configuration parameters. | ||
| 4008 | |||
| 4009 | =over 4 | ||
| 4010 | |||
| 4011 | =item * parameter [parameter ...] | ||
| 4012 | |||
| 4013 | =back | ||
| 4014 | |||
| 4015 | L<https://redis.io/commands/config-get> | ||
| 4016 | |||
| 4017 | =cut | ||
| 4018 | |||
| 4019 | 0 | ▶ | method config_get (@args) { |
|
Subroutine
config_get: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4020 | 0 | $self->execute_command(qw(CONFIG GET) => @args) | |
| 4021 | 16 | } | |
| 4022 | |||
| 4023 | =head2 config_resetstat | ||
| 4024 | |||
| 4025 | Reset the stats returned by INFO. | ||
| 4026 | |||
| 4027 | L<https://redis.io/commands/config-resetstat> | ||
| 4028 | |||
| 4029 | =cut | ||
| 4030 | |||
| 4031 | 0 | ▶ | method config_resetstat (@args) { |
|
Subroutine
config_resetstat: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4032 | 0 | $self->execute_command(qw(CONFIG RESETSTAT) => @args) | |
| 4033 | 16 | } | |
| 4034 | |||
| 4035 | =head2 config_rewrite | ||
| 4036 | |||
| 4037 | Rewrite the configuration file with the in memory configuration. | ||
| 4038 | |||
| 4039 | L<https://redis.io/commands/config-rewrite> | ||
| 4040 | |||
| 4041 | =cut | ||
| 4042 | |||
| 4043 | 0 | ▶ | method config_rewrite (@args) { |
|
Subroutine
config_rewrite: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4044 | 0 | $self->execute_command(qw(CONFIG REWRITE) => @args) | |
| 4045 | 16 | } | |
| 4046 | |||
| 4047 | =head2 config_set | ||
| 4048 | |||
| 4049 | Set configuration parameters to the given values. | ||
| 4050 | |||
| 4051 | =over 4 | ||
| 4052 | |||
| 4053 | =item * parameter value [parameter value ...] | ||
| 4054 | |||
| 4055 | =back | ||
| 4056 | |||
| 4057 | L<https://redis.io/commands/config-set> | ||
| 4058 | |||
| 4059 | =cut | ||
| 4060 | |||
| 4061 | 0 | ▶ | method config_set (@args) { |
|
Subroutine
config_set: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4062 | 0 | $self->execute_command(qw(CONFIG SET) => @args) | |
| 4063 | 16 | } | |
| 4064 | |||
| 4065 | =head2 dbsize | ||
| 4066 | |||
| 4067 | Return the number of keys in the selected database. | ||
| 4068 | |||
| 4069 | L<https://redis.io/commands/dbsize> | ||
| 4070 | |||
| 4071 | =cut | ||
| 4072 | |||
| 4073 | 0 | ▶ | method dbsize (@args) { |
|
Subroutine
dbsize: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4074 | 0 | $self->execute_command(qw(DBSIZE) => @args) | |
| 4075 | 16 | } | |
| 4076 | |||
| 4077 | =head2 failover | ||
| 4078 | |||
| 4079 | Start a coordinated failover between this server and one of its replicas. | ||
| 4080 | |||
| 4081 | =over 4 | ||
| 4082 | |||
| 4083 | =item * [TO host port [FORCE]] | ||
| 4084 | |||
| 4085 | =item * [ABORT] | ||
| 4086 | |||
| 4087 | =item * [TIMEOUT milliseconds] | ||
| 4088 | |||
| 4089 | =back | ||
| 4090 | |||
| 4091 | L<https://redis.io/commands/failover> | ||
| 4092 | |||
| 4093 | =cut | ||
| 4094 | |||
| 4095 | 0 | ▶ | method failover (@args) { |
|
Subroutine
failover: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4096 | 0 | $self->execute_command(qw(FAILOVER) => @args) | |
| 4097 | 16 | } | |
| 4098 | |||
| 4099 | =head2 flushall | ||
| 4100 | |||
| 4101 | Remove all keys from all databases. | ||
| 4102 | |||
| 4103 | =over 4 | ||
| 4104 | |||
| 4105 | =item * [ASYNC|SYNC] | ||
| 4106 | |||
| 4107 | =back | ||
| 4108 | |||
| 4109 | L<https://redis.io/commands/flushall> | ||
| 4110 | |||
| 4111 | =cut | ||
| 4112 | |||
| 4113 | 0 | ▶ | method flushall (@args) { |
|
Subroutine
flushall: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4114 | 0 | $self->execute_command(qw(FLUSHALL) => @args) | |
| 4115 | 16 | } | |
| 4116 | |||
| 4117 | =head2 flushdb | ||
| 4118 | |||
| 4119 | Remove all keys from the current database. | ||
| 4120 | |||
| 4121 | =over 4 | ||
| 4122 | |||
| 4123 | =item * [ASYNC|SYNC] | ||
| 4124 | |||
| 4125 | =back | ||
| 4126 | |||
| 4127 | L<https://redis.io/commands/flushdb> | ||
| 4128 | |||
| 4129 | =cut | ||
| 4130 | |||
| 4131 | 0 | ▶ | method flushdb (@args) { |
|
Subroutine
flushdb: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4132 | 0 | $self->execute_command(qw(FLUSHDB) => @args) | |
| 4133 | 16 | } | |
| 4134 | |||
| 4135 | =head2 info | ||
| 4136 | |||
| 4137 | Get information and statistics about the server. | ||
| 4138 | |||
| 4139 | =over 4 | ||
| 4140 | |||
| 4141 | =item * [section [section ...]] | ||
| 4142 | |||
| 4143 | =back | ||
| 4144 | |||
| 4145 | L<https://redis.io/commands/info> | ||
| 4146 | |||
| 4147 | =cut | ||
| 4148 | |||
| 4149 | 0 | ▶ | method info (@args) { |
|
Subroutine
info: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4150 | 0 | $self->execute_command(qw(INFO) => @args) | |
| 4151 | 16 | } | |
| 4152 | |||
| 4153 | =head2 lastsave | ||
| 4154 | |||
| 4155 | Get the UNIX time stamp of the last successful save to disk. | ||
| 4156 | |||
| 4157 | L<https://redis.io/commands/lastsave> | ||
| 4158 | |||
| 4159 | =cut | ||
| 4160 | |||
| 4161 | 0 | ▶ | method lastsave (@args) { |
|
Subroutine
lastsave: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4162 | 0 | $self->execute_command(qw(LASTSAVE) => @args) | |
| 4163 | 16 | } | |
| 4164 | |||
| 4165 | =head2 latency_doctor | ||
| 4166 | |||
| 4167 | Return a human readable latency analysis report. | ||
| 4168 | |||
| 4169 | L<https://redis.io/commands/latency-doctor> | ||
| 4170 | |||
| 4171 | =cut | ||
| 4172 | |||
| 4173 | 0 | ▶ | method latency_doctor (@args) { |
|
Subroutine
latency_doctor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4174 | 0 | $self->execute_command(qw(LATENCY DOCTOR) => @args) | |
| 4175 | 16 | } | |
| 4176 | |||
| 4177 | =head2 latency_graph | ||
| 4178 | |||
| 4179 | Return a latency graph for the event. | ||
| 4180 | |||
| 4181 | =over 4 | ||
| 4182 | |||
| 4183 | =item * event | ||
| 4184 | |||
| 4185 | =back | ||
| 4186 | |||
| 4187 | L<https://redis.io/commands/latency-graph> | ||
| 4188 | |||
| 4189 | =cut | ||
| 4190 | |||
| 4191 | 0 | ▶ | method latency_graph (@args) { |
|
Subroutine
latency_graph: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4192 | 0 | $self->execute_command(qw(LATENCY GRAPH) => @args) | |
| 4193 | 16 | } | |
| 4194 | |||
| 4195 | =head2 latency_histogram | ||
| 4196 | |||
| 4197 | Return the cumulative distribution of latencies of a subset of commands or all. | ||
| 4198 | |||
| 4199 | =over 4 | ||
| 4200 | |||
| 4201 | =item * [command [command ...]] | ||
| 4202 | |||
| 4203 | =back | ||
| 4204 | |||
| 4205 | L<https://redis.io/commands/latency-histogram> | ||
| 4206 | |||
| 4207 | =cut | ||
| 4208 | |||
| 4209 | 0 | ▶ | method latency_histogram (@args) { |
|
Subroutine
latency_histogram: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4210 | 0 | $self->execute_command(qw(LATENCY HISTOGRAM) => @args) | |
| 4211 | 16 | } | |
| 4212 | |||
| 4213 | =head2 latency_history | ||
| 4214 | |||
| 4215 | Return timestamp-latency samples for the event. | ||
| 4216 | |||
| 4217 | =over 4 | ||
| 4218 | |||
| 4219 | =item * event | ||
| 4220 | |||
| 4221 | =back | ||
| 4222 | |||
| 4223 | L<https://redis.io/commands/latency-history> | ||
| 4224 | |||
| 4225 | =cut | ||
| 4226 | |||
| 4227 | 0 | ▶ | method latency_history (@args) { |
|
Subroutine
latency_history: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4228 | 0 | $self->execute_command(qw(LATENCY HISTORY) => @args) | |
| 4229 | 16 | } | |
| 4230 | |||
| 4231 | =head2 latency_latest | ||
| 4232 | |||
| 4233 | Return the latest latency samples for all events. | ||
| 4234 | |||
| 4235 | L<https://redis.io/commands/latency-latest> | ||
| 4236 | |||
| 4237 | =cut | ||
| 4238 | |||
| 4239 | 0 | ▶ | method latency_latest (@args) { |
|
Subroutine
latency_latest: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4240 | 0 | $self->execute_command(qw(LATENCY LATEST) => @args) | |
| 4241 | 16 | } | |
| 4242 | |||
| 4243 | =head2 latency_reset | ||
| 4244 | |||
| 4245 | Reset latency data for one or more events. | ||
| 4246 | |||
| 4247 | =over 4 | ||
| 4248 | |||
| 4249 | =item * [event [event ...]] | ||
| 4250 | |||
| 4251 | =back | ||
| 4252 | |||
| 4253 | L<https://redis.io/commands/latency-reset> | ||
| 4254 | |||
| 4255 | =cut | ||
| 4256 | |||
| 4257 | 0 | ▶ | method latency_reset (@args) { |
|
Subroutine
latency_reset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4258 | 0 | $self->execute_command(qw(LATENCY RESET) => @args) | |
| 4259 | 16 | } | |
| 4260 | |||
| 4261 | =head2 lolwut | ||
| 4262 | |||
| 4263 | Display some computer art and the Redis version. | ||
| 4264 | |||
| 4265 | =over 4 | ||
| 4266 | |||
| 4267 | =item * [VERSION version] | ||
| 4268 | |||
| 4269 | =back | ||
| 4270 | |||
| 4271 | L<https://redis.io/commands/lolwut> | ||
| 4272 | |||
| 4273 | =cut | ||
| 4274 | |||
| 4275 | 0 | ▶ | method lolwut (@args) { |
|
Subroutine
lolwut: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4276 | 0 | $self->execute_command(qw(LOLWUT) => @args) | |
| 4277 | 16 | } | |
| 4278 | |||
| 4279 | =head2 memory_doctor | ||
| 4280 | |||
| 4281 | Outputs memory problems report. | ||
| 4282 | |||
| 4283 | L<https://redis.io/commands/memory-doctor> | ||
| 4284 | |||
| 4285 | =cut | ||
| 4286 | |||
| 4287 | 0 | ▶ | method memory_doctor (@args) { |
|
Subroutine
memory_doctor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4288 | 0 | $self->execute_command(qw(MEMORY DOCTOR) => @args) | |
| 4289 | 16 | } | |
| 4290 | |||
| 4291 | =head2 memory_malloc_stats | ||
| 4292 | |||
| 4293 | Show allocator internal stats. | ||
| 4294 | |||
| 4295 | L<https://redis.io/commands/memory-malloc-stats> | ||
| 4296 | |||
| 4297 | =cut | ||
| 4298 | |||
| 4299 | 0 | ▶ | method memory_malloc_stats (@args) { |
|
Subroutine
memory_malloc_stats: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4300 | 0 | $self->execute_command(qw(MEMORY MALLOC-STATS) => @args) | |
| 4301 | 16 | } | |
| 4302 | |||
| 4303 | =head2 memory_purge | ||
| 4304 | |||
| 4305 | Ask the allocator to release memory. | ||
| 4306 | |||
| 4307 | L<https://redis.io/commands/memory-purge> | ||
| 4308 | |||
| 4309 | =cut | ||
| 4310 | |||
| 4311 | 0 | ▶ | method memory_purge (@args) { |
|
Subroutine
memory_purge: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4312 | 0 | $self->execute_command(qw(MEMORY PURGE) => @args) | |
| 4313 | 16 | } | |
| 4314 | |||
| 4315 | =head2 memory_stats | ||
| 4316 | |||
| 4317 | Show memory usage details. | ||
| 4318 | |||
| 4319 | L<https://redis.io/commands/memory-stats> | ||
| 4320 | |||
| 4321 | =cut | ||
| 4322 | |||
| 4323 | 0 | ▶ | method memory_stats (@args) { |
|
Subroutine
memory_stats: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4324 | 0 | $self->execute_command(qw(MEMORY STATS) => @args) | |
| 4325 | 16 | } | |
| 4326 | |||
| 4327 | =head2 memory_usage | ||
| 4328 | |||
| 4329 | Estimate the memory usage of a key. | ||
| 4330 | |||
| 4331 | =over 4 | ||
| 4332 | |||
| 4333 | =item * key | ||
| 4334 | |||
| 4335 | =item * [SAMPLES count] | ||
| 4336 | |||
| 4337 | =back | ||
| 4338 | |||
| 4339 | L<https://redis.io/commands/memory-usage> | ||
| 4340 | |||
| 4341 | =cut | ||
| 4342 | |||
| 4343 | 0 | ▶ | method memory_usage (@args) { |
|
Subroutine
memory_usage: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4344 | 0 | $self->execute_command(qw(MEMORY USAGE) => @args) | |
| 4345 | 16 | } | |
| 4346 | |||
| 4347 | =head2 module_list | ||
| 4348 | |||
| 4349 | List all modules loaded by the server. | ||
| 4350 | |||
| 4351 | L<https://redis.io/commands/module-list> | ||
| 4352 | |||
| 4353 | =cut | ||
| 4354 | |||
| 4355 | 0 | ▶ | method module_list (@args) { |
|
Subroutine
module_list: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4356 | 0 | $self->execute_command(qw(MODULE LIST) => @args) | |
| 4357 | 16 | } | |
| 4358 | |||
| 4359 | =head2 module_load | ||
| 4360 | |||
| 4361 | Load a module. | ||
| 4362 | |||
| 4363 | =over 4 | ||
| 4364 | |||
| 4365 | =item * path | ||
| 4366 | |||
| 4367 | =item * [arg [arg ...]] | ||
| 4368 | |||
| 4369 | =back | ||
| 4370 | |||
| 4371 | L<https://redis.io/commands/module-load> | ||
| 4372 | |||
| 4373 | =cut | ||
| 4374 | |||
| 4375 | 0 | ▶ | method module_load (@args) { |
|
Subroutine
module_load: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4376 | 0 | $self->execute_command(qw(MODULE LOAD) => @args) | |
| 4377 | 16 | } | |
| 4378 | |||
| 4379 | =head2 module_unload | ||
| 4380 | |||
| 4381 | Unload a module. | ||
| 4382 | |||
| 4383 | =over 4 | ||
| 4384 | |||
| 4385 | =item * name | ||
| 4386 | |||
| 4387 | =back | ||
| 4388 | |||
| 4389 | L<https://redis.io/commands/module-unload> | ||
| 4390 | |||
| 4391 | =cut | ||
| 4392 | |||
| 4393 | 0 | ▶ | method module_unload (@args) { |
|
Subroutine
module_unload: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4394 | 0 | $self->execute_command(qw(MODULE UNLOAD) => @args) | |
| 4395 | 16 | } | |
| 4396 | |||
| 4397 | =head2 monitor | ||
| 4398 | |||
| 4399 | Listen for all requests received by the server in real time. | ||
| 4400 | |||
| 4401 | L<https://redis.io/commands/monitor> | ||
| 4402 | |||
| 4403 | =cut | ||
| 4404 | |||
| 4405 | 0 | ▶ | method monitor (@args) { |
|
Subroutine
monitor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4406 | 0 | $self->execute_command(qw(MONITOR) => @args) | |
| 4407 | 16 | } | |
| 4408 | |||
| 4409 | =head2 psync | ||
| 4410 | |||
| 4411 | Internal command used for replication. | ||
| 4412 | |||
| 4413 | =over 4 | ||
| 4414 | |||
| 4415 | =item * replicationid | ||
| 4416 | |||
| 4417 | =item * offset | ||
| 4418 | |||
| 4419 | =back | ||
| 4420 | |||
| 4421 | L<https://redis.io/commands/psync> | ||
| 4422 | |||
| 4423 | =cut | ||
| 4424 | |||
| 4425 | 0 | ▶ | method psync (@args) { |
|
Subroutine
psync: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4426 | 0 | $self->execute_command(qw(PSYNC) => @args) | |
| 4427 | 16 | } | |
| 4428 | |||
| 4429 | =head2 replconf | ||
| 4430 | |||
| 4431 | An internal command for configuring the replication stream. | ||
| 4432 | |||
| 4433 | L<https://redis.io/commands/replconf> | ||
| 4434 | |||
| 4435 | =cut | ||
| 4436 | |||
| 4437 | 0 | ▶ | method replconf (@args) { |
|
Subroutine
replconf: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4438 | 0 | $self->execute_command(qw(REPLCONF) => @args) | |
| 4439 | 16 | } | |
| 4440 | |||
| 4441 | =head2 replicaof | ||
| 4442 | |||
| 4443 | Make the server a replica of another instance, or promote it as master. | ||
| 4444 | |||
| 4445 | =over 4 | ||
| 4446 | |||
| 4447 | =item * host | ||
| 4448 | |||
| 4449 | =item * port | ||
| 4450 | |||
| 4451 | =back | ||
| 4452 | |||
| 4453 | L<https://redis.io/commands/replicaof> | ||
| 4454 | |||
| 4455 | =cut | ||
| 4456 | |||
| 4457 | 0 | ▶ | method replicaof (@args) { |
|
Subroutine
replicaof: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4458 | 0 | $self->execute_command(qw(REPLICAOF) => @args) | |
| 4459 | 16 | } | |
| 4460 | |||
| 4461 | =head2 restore_asking | ||
| 4462 | |||
| 4463 | An internal command for migrating keys in a cluster. | ||
| 4464 | |||
| 4465 | L<https://redis.io/commands/restore-asking> | ||
| 4466 | |||
| 4467 | =cut | ||
| 4468 | |||
| 4469 | 0 | ▶ | method restore_asking (@args) { |
|
Subroutine
restore_asking: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4470 | 0 | $self->execute_command(qw(RESTORE-ASKING) => @args) | |
| 4471 | 16 | } | |
| 4472 | |||
| 4473 | =head2 role | ||
| 4474 | |||
| 4475 | Return the role of the instance in the context of replication. | ||
| 4476 | |||
| 4477 | L<https://redis.io/commands/role> | ||
| 4478 | |||
| 4479 | =cut | ||
| 4480 | |||
| 4481 | 0 | ▶ | method role (@args) { |
|
Subroutine
role: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4482 | 0 | $self->execute_command(qw(ROLE) => @args) | |
| 4483 | 16 | } | |
| 4484 | |||
| 4485 | =head2 save | ||
| 4486 | |||
| 4487 | Synchronously save the dataset to disk. | ||
| 4488 | |||
| 4489 | L<https://redis.io/commands/save> | ||
| 4490 | |||
| 4491 | =cut | ||
| 4492 | |||
| 4493 | 0 | ▶ | method save (@args) { |
|
Subroutine
save: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4494 | 0 | $self->execute_command(qw(SAVE) => @args) | |
| 4495 | 16 | } | |
| 4496 | |||
| 4497 | =head2 shutdown | ||
| 4498 | |||
| 4499 | Synchronously save the dataset to disk and then shut down the server. | ||
| 4500 | |||
| 4501 | =over 4 | ||
| 4502 | |||
| 4503 | =item * [NOSAVE|SAVE] | ||
| 4504 | |||
| 4505 | =item * [NOW] | ||
| 4506 | |||
| 4507 | =item * [FORCE] | ||
| 4508 | |||
| 4509 | =item * [ABORT] | ||
| 4510 | |||
| 4511 | =back | ||
| 4512 | |||
| 4513 | L<https://redis.io/commands/shutdown> | ||
| 4514 | |||
| 4515 | =cut | ||
| 4516 | |||
| 4517 | 0 | ▶ | method shutdown (@args) { |
|
Subroutine
shutdown: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4518 | 0 | $self->execute_command(qw(SHUTDOWN) => @args) | |
| 4519 | 16 | } | |
| 4520 | |||
| 4521 | =head2 slaveof | ||
| 4522 | |||
| 4523 | Make the server a replica of another instance, or promote it as master. | ||
| 4524 | |||
| 4525 | =over 4 | ||
| 4526 | |||
| 4527 | =item * host | ||
| 4528 | |||
| 4529 | =item * port | ||
| 4530 | |||
| 4531 | =back | ||
| 4532 | |||
| 4533 | L<https://redis.io/commands/slaveof> | ||
| 4534 | |||
| 4535 | =cut | ||
| 4536 | |||
| 4537 | 0 | ▶ | method slaveof (@args) { |
|
Subroutine
slaveof: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4538 | 0 | $self->execute_command(qw(SLAVEOF) => @args) | |
| 4539 | 16 | } | |
| 4540 | |||
| 4541 | =head2 slowlog_get | ||
| 4542 | |||
| 4543 | Get the slow log's entries. | ||
| 4544 | |||
| 4545 | =over 4 | ||
| 4546 | |||
| 4547 | =item * [count] | ||
| 4548 | |||
| 4549 | =back | ||
| 4550 | |||
| 4551 | L<https://redis.io/commands/slowlog-get> | ||
| 4552 | |||
| 4553 | =cut | ||
| 4554 | |||
| 4555 | 0 | ▶ | method slowlog_get (@args) { |
|
Subroutine
slowlog_get: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4556 | 0 | $self->execute_command(qw(SLOWLOG GET) => @args) | |
| 4557 | 16 | } | |
| 4558 | |||
| 4559 | =head2 slowlog_len | ||
| 4560 | |||
| 4561 | Get the slow log's length. | ||
| 4562 | |||
| 4563 | L<https://redis.io/commands/slowlog-len> | ||
| 4564 | |||
| 4565 | =cut | ||
| 4566 | |||
| 4567 | 0 | ▶ | method slowlog_len (@args) { |
|
Subroutine
slowlog_len: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4568 | 0 | $self->execute_command(qw(SLOWLOG LEN) => @args) | |
| 4569 | 16 | } | |
| 4570 | |||
| 4571 | =head2 slowlog_reset | ||
| 4572 | |||
| 4573 | Clear all entries from the slow log. | ||
| 4574 | |||
| 4575 | L<https://redis.io/commands/slowlog-reset> | ||
| 4576 | |||
| 4577 | =cut | ||
| 4578 | |||
| 4579 | 0 | ▶ | method slowlog_reset (@args) { |
|
Subroutine
slowlog_reset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4580 | 0 | $self->execute_command(qw(SLOWLOG RESET) => @args) | |
| 4581 | 16 | } | |
| 4582 | |||
| 4583 | =head2 swapdb | ||
| 4584 | |||
| 4585 | Swaps two Redis databases. | ||
| 4586 | |||
| 4587 | =over 4 | ||
| 4588 | |||
| 4589 | =item * index1 | ||
| 4590 | |||
| 4591 | =item * index2 | ||
| 4592 | |||
| 4593 | =back | ||
| 4594 | |||
| 4595 | L<https://redis.io/commands/swapdb> | ||
| 4596 | |||
| 4597 | =cut | ||
| 4598 | |||
| 4599 | 0 | ▶ | method swapdb (@args) { |
|
Subroutine
swapdb: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4600 | 0 | $self->execute_command(qw(SWAPDB) => @args) | |
| 4601 | 16 | } | |
| 4602 | |||
| 4603 | =head2 sync | ||
| 4604 | |||
| 4605 | Internal command used for replication. | ||
| 4606 | |||
| 4607 | L<https://redis.io/commands/sync> | ||
| 4608 | |||
| 4609 | =cut | ||
| 4610 | |||
| 4611 | 0 | ▶ | method sync (@args) { |
|
Subroutine
sync: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4612 | 0 | $self->execute_command(qw(SYNC) => @args) | |
| 4613 | 16 | } | |
| 4614 | |||
| 4615 | =head2 time | ||
| 4616 | |||
| 4617 | Return the current server time. | ||
| 4618 | |||
| 4619 | L<https://redis.io/commands/time> | ||
| 4620 | |||
| 4621 | =cut | ||
| 4622 | |||
| 4623 | 0 | ▶ | method time (@args) { |
|
Subroutine
time: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4624 | 0 | $self->execute_command(qw(TIME) => @args) | |
| 4625 | 16 | } | |
| 4626 | |||
| 4627 | =head1 METHODS - Set | ||
| 4628 | |||
| 4629 | =head2 sadd | ||
| 4630 | |||
| 4631 | Add one or more members to a set. | ||
| 4632 | |||
| 4633 | =over 4 | ||
| 4634 | |||
| 4635 | =item * key | ||
| 4636 | |||
| 4637 | =item * member [member ...] | ||
| 4638 | |||
| 4639 | =back | ||
| 4640 | |||
| 4641 | L<https://redis.io/commands/sadd> | ||
| 4642 | |||
| 4643 | =cut | ||
| 4644 | |||
| 4645 | 0 | ▶ | method sadd (@args) { |
|
Subroutine
sadd: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4646 | 0 | $self->execute_command(qw(SADD) => @args) | |
| 4647 | 16 | } | |
| 4648 | |||
| 4649 | =head2 scard | ||
| 4650 | |||
| 4651 | Get the number of members in a set. | ||
| 4652 | |||
| 4653 | =over 4 | ||
| 4654 | |||
| 4655 | =item * key | ||
| 4656 | |||
| 4657 | =back | ||
| 4658 | |||
| 4659 | L<https://redis.io/commands/scard> | ||
| 4660 | |||
| 4661 | =cut | ||
| 4662 | |||
| 4663 | 0 | ▶ | method scard (@args) { |
|
Subroutine
scard: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4664 | 0 | $self->execute_command(qw(SCARD) => @args) | |
| 4665 | 16 | } | |
| 4666 | |||
| 4667 | =head2 sdiff | ||
| 4668 | |||
| 4669 | Subtract multiple sets. | ||
| 4670 | |||
| 4671 | =over 4 | ||
| 4672 | |||
| 4673 | =item * key [key ...] | ||
| 4674 | |||
| 4675 | =back | ||
| 4676 | |||
| 4677 | L<https://redis.io/commands/sdiff> | ||
| 4678 | |||
| 4679 | =cut | ||
| 4680 | |||
| 4681 | 0 | ▶ | method sdiff (@args) { |
|
Subroutine
sdiff: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4682 | 0 | $self->execute_command(qw(SDIFF) => @args) | |
| 4683 | 16 | } | |
| 4684 | |||
| 4685 | =head2 sdiffstore | ||
| 4686 | |||
| 4687 | Subtract multiple sets and store the resulting set in a key. | ||
| 4688 | |||
| 4689 | =over 4 | ||
| 4690 | |||
| 4691 | =item * destination | ||
| 4692 | |||
| 4693 | =item * key [key ...] | ||
| 4694 | |||
| 4695 | =back | ||
| 4696 | |||
| 4697 | L<https://redis.io/commands/sdiffstore> | ||
| 4698 | |||
| 4699 | =cut | ||
| 4700 | |||
| 4701 | 0 | ▶ | method sdiffstore (@args) { |
|
Subroutine
sdiffstore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4702 | 0 | $self->execute_command(qw(SDIFFSTORE) => @args) | |
| 4703 | 16 | } | |
| 4704 | |||
| 4705 | =head2 sinter | ||
| 4706 | |||
| 4707 | Intersect multiple sets. | ||
| 4708 | |||
| 4709 | =over 4 | ||
| 4710 | |||
| 4711 | =item * key [key ...] | ||
| 4712 | |||
| 4713 | =back | ||
| 4714 | |||
| 4715 | L<https://redis.io/commands/sinter> | ||
| 4716 | |||
| 4717 | =cut | ||
| 4718 | |||
| 4719 | 0 | ▶ | method sinter (@args) { |
|
Subroutine
sinter: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4720 | 0 | $self->execute_command(qw(SINTER) => @args) | |
| 4721 | 16 | } | |
| 4722 | |||
| 4723 | =head2 sintercard | ||
| 4724 | |||
| 4725 | Intersect multiple sets and return the cardinality of the result. | ||
| 4726 | |||
| 4727 | =over 4 | ||
| 4728 | |||
| 4729 | =item * numkeys | ||
| 4730 | |||
| 4731 | =item * key [key ...] | ||
| 4732 | |||
| 4733 | =item * [LIMIT limit] | ||
| 4734 | |||
| 4735 | =back | ||
| 4736 | |||
| 4737 | L<https://redis.io/commands/sintercard> | ||
| 4738 | |||
| 4739 | =cut | ||
| 4740 | |||
| 4741 | 0 | ▶ | method sintercard (@args) { |
|
Subroutine
sintercard: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4742 | 0 | $self->execute_command(qw(SINTERCARD) => @args) | |
| 4743 | 16 | } | |
| 4744 | |||
| 4745 | =head2 sinterstore | ||
| 4746 | |||
| 4747 | Intersect multiple sets and store the resulting set in a key. | ||
| 4748 | |||
| 4749 | =over 4 | ||
| 4750 | |||
| 4751 | =item * destination | ||
| 4752 | |||
| 4753 | =item * key [key ...] | ||
| 4754 | |||
| 4755 | =back | ||
| 4756 | |||
| 4757 | L<https://redis.io/commands/sinterstore> | ||
| 4758 | |||
| 4759 | =cut | ||
| 4760 | |||
| 4761 | 0 | ▶ | method sinterstore (@args) { |
|
Subroutine
sinterstore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4762 | 0 | $self->execute_command(qw(SINTERSTORE) => @args) | |
| 4763 | 16 | } | |
| 4764 | |||
| 4765 | =head2 sismember | ||
| 4766 | |||
| 4767 | Determine if a given value is a member of a set. | ||
| 4768 | |||
| 4769 | =over 4 | ||
| 4770 | |||
| 4771 | =item * key | ||
| 4772 | |||
| 4773 | =item * member | ||
| 4774 | |||
| 4775 | =back | ||
| 4776 | |||
| 4777 | L<https://redis.io/commands/sismember> | ||
| 4778 | |||
| 4779 | =cut | ||
| 4780 | |||
| 4781 | 0 | ▶ | method sismember (@args) { |
|
Subroutine
sismember: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4782 | 0 | $self->execute_command(qw(SISMEMBER) => @args) | |
| 4783 | 16 | } | |
| 4784 | |||
| 4785 | =head2 smembers | ||
| 4786 | |||
| 4787 | Get all the members in a set. | ||
| 4788 | |||
| 4789 | =over 4 | ||
| 4790 | |||
| 4791 | =item * key | ||
| 4792 | |||
| 4793 | =back | ||
| 4794 | |||
| 4795 | L<https://redis.io/commands/smembers> | ||
| 4796 | |||
| 4797 | =cut | ||
| 4798 | |||
| 4799 | 0 | ▶ | method smembers (@args) { |
|
Subroutine
smembers: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4800 | 0 | $self->execute_command(qw(SMEMBERS) => @args) | |
| 4801 | 16 | } | |
| 4802 | |||
| 4803 | =head2 smismember | ||
| 4804 | |||
| 4805 | Returns the membership associated with the given elements for a set. | ||
| 4806 | |||
| 4807 | =over 4 | ||
| 4808 | |||
| 4809 | =item * key | ||
| 4810 | |||
| 4811 | =item * member [member ...] | ||
| 4812 | |||
| 4813 | =back | ||
| 4814 | |||
| 4815 | L<https://redis.io/commands/smismember> | ||
| 4816 | |||
| 4817 | =cut | ||
| 4818 | |||
| 4819 | 0 | ▶ | method smismember (@args) { |
|
Subroutine
smismember: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4820 | 0 | $self->execute_command(qw(SMISMEMBER) => @args) | |
| 4821 | 16 | } | |
| 4822 | |||
| 4823 | =head2 smove | ||
| 4824 | |||
| 4825 | Move a member from one set to another. | ||
| 4826 | |||
| 4827 | =over 4 | ||
| 4828 | |||
| 4829 | =item * source | ||
| 4830 | |||
| 4831 | =item * destination | ||
| 4832 | |||
| 4833 | =item * member | ||
| 4834 | |||
| 4835 | =back | ||
| 4836 | |||
| 4837 | L<https://redis.io/commands/smove> | ||
| 4838 | |||
| 4839 | =cut | ||
| 4840 | |||
| 4841 | 0 | ▶ | method smove (@args) { |
|
Subroutine
smove: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4842 | 0 | $self->execute_command(qw(SMOVE) => @args) | |
| 4843 | 16 | } | |
| 4844 | |||
| 4845 | =head2 spop | ||
| 4846 | |||
| 4847 | Remove and return one or multiple random members from a set. | ||
| 4848 | |||
| 4849 | =over 4 | ||
| 4850 | |||
| 4851 | =item * key | ||
| 4852 | |||
| 4853 | =item * [count] | ||
| 4854 | |||
| 4855 | =back | ||
| 4856 | |||
| 4857 | L<https://redis.io/commands/spop> | ||
| 4858 | |||
| 4859 | =cut | ||
| 4860 | |||
| 4861 | 0 | ▶ | method spop (@args) { |
|
Subroutine
spop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4862 | 0 | $self->execute_command(qw(SPOP) => @args) | |
| 4863 | 16 | } | |
| 4864 | |||
| 4865 | =head2 srandmember | ||
| 4866 | |||
| 4867 | Get one or multiple random members from a set. | ||
| 4868 | |||
| 4869 | =over 4 | ||
| 4870 | |||
| 4871 | =item * key | ||
| 4872 | |||
| 4873 | =item * [count] | ||
| 4874 | |||
| 4875 | =back | ||
| 4876 | |||
| 4877 | L<https://redis.io/commands/srandmember> | ||
| 4878 | |||
| 4879 | =cut | ||
| 4880 | |||
| 4881 | 0 | ▶ | method srandmember (@args) { |
|
Subroutine
srandmember: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4882 | 0 | $self->execute_command(qw(SRANDMEMBER) => @args) | |
| 4883 | 16 | } | |
| 4884 | |||
| 4885 | =head2 srem | ||
| 4886 | |||
| 4887 | Remove one or more members from a set. | ||
| 4888 | |||
| 4889 | =over 4 | ||
| 4890 | |||
| 4891 | =item * key | ||
| 4892 | |||
| 4893 | =item * member [member ...] | ||
| 4894 | |||
| 4895 | =back | ||
| 4896 | |||
| 4897 | L<https://redis.io/commands/srem> | ||
| 4898 | |||
| 4899 | =cut | ||
| 4900 | |||
| 4901 | 0 | ▶ | method srem (@args) { |
|
Subroutine
srem: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4902 | 0 | $self->execute_command(qw(SREM) => @args) | |
| 4903 | 16 | } | |
| 4904 | |||
| 4905 | =head2 sscan | ||
| 4906 | |||
| 4907 | Incrementally iterate Set elements. | ||
| 4908 | |||
| 4909 | =over 4 | ||
| 4910 | |||
| 4911 | =item * key | ||
| 4912 | |||
| 4913 | =item * cursor | ||
| 4914 | |||
| 4915 | =item * [MATCH pattern] | ||
| 4916 | |||
| 4917 | =item * [COUNT count] | ||
| 4918 | |||
| 4919 | =back | ||
| 4920 | |||
| 4921 | L<https://redis.io/commands/sscan> | ||
| 4922 | |||
| 4923 | =cut | ||
| 4924 | |||
| 4925 | 0 | ▶ | method sscan (@args) { |
|
Subroutine
sscan: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4926 | 0 | $self->execute_command(qw(SSCAN) => @args) | |
| 4927 | 16 | } | |
| 4928 | |||
| 4929 | =head2 sunion | ||
| 4930 | |||
| 4931 | Add multiple sets. | ||
| 4932 | |||
| 4933 | =over 4 | ||
| 4934 | |||
| 4935 | =item * key [key ...] | ||
| 4936 | |||
| 4937 | =back | ||
| 4938 | |||
| 4939 | L<https://redis.io/commands/sunion> | ||
| 4940 | |||
| 4941 | =cut | ||
| 4942 | |||
| 4943 | 0 | ▶ | method sunion (@args) { |
|
Subroutine
sunion: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4944 | 0 | $self->execute_command(qw(SUNION) => @args) | |
| 4945 | 16 | } | |
| 4946 | |||
| 4947 | =head2 sunionstore | ||
| 4948 | |||
| 4949 | Add multiple sets and store the resulting set in a key. | ||
| 4950 | |||
| 4951 | =over 4 | ||
| 4952 | |||
| 4953 | =item * destination | ||
| 4954 | |||
| 4955 | =item * key [key ...] | ||
| 4956 | |||
| 4957 | =back | ||
| 4958 | |||
| 4959 | L<https://redis.io/commands/sunionstore> | ||
| 4960 | |||
| 4961 | =cut | ||
| 4962 | |||
| 4963 | 0 | ▶ | method sunionstore (@args) { |
|
Subroutine
sunionstore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4964 | 0 | $self->execute_command(qw(SUNIONSTORE) => @args) | |
| 4965 | 16 | } | |
| 4966 | |||
| 4967 | =head1 METHODS - Sorted-set | ||
| 4968 | |||
| 4969 | =head2 bzmpop | ||
| 4970 | |||
| 4971 | Remove and return members with scores in a sorted set or block until one is available. | ||
| 4972 | |||
| 4973 | =over 4 | ||
| 4974 | |||
| 4975 | =item * timeout | ||
| 4976 | |||
| 4977 | =item * numkeys | ||
| 4978 | |||
| 4979 | =item * key [key ...] | ||
| 4980 | |||
| 4981 | =item * MIN|MAX | ||
| 4982 | |||
| 4983 | =item * [COUNT count] | ||
| 4984 | |||
| 4985 | =back | ||
| 4986 | |||
| 4987 | L<https://redis.io/commands/bzmpop> | ||
| 4988 | |||
| 4989 | =cut | ||
| 4990 | |||
| 4991 | 0 | ▶ | method bzmpop (@args) { |
|
Subroutine
bzmpop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 4992 | 0 | $self->execute_command(qw(BZMPOP) => @args) | |
| 4993 | 16 | } | |
| 4994 | |||
| 4995 | =head2 bzpopmax | ||
| 4996 | |||
| 4997 | Remove and return the member with the highest score from one or more sorted sets, or block until one is available. | ||
| 4998 | |||
| 4999 | =over 4 | ||
| 5000 | |||
| 5001 | =item * key [key ...] | ||
| 5002 | |||
| 5003 | =item * timeout | ||
| 5004 | |||
| 5005 | =back | ||
| 5006 | |||
| 5007 | L<https://redis.io/commands/bzpopmax> | ||
| 5008 | |||
| 5009 | =cut | ||
| 5010 | |||
| 5011 | 0 | ▶ | method bzpopmax (@args) { |
|
Subroutine
bzpopmax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5012 | 0 | $self->execute_command(qw(BZPOPMAX) => @args) | |
| 5013 | 16 | } | |
| 5014 | |||
| 5015 | =head2 bzpopmin | ||
| 5016 | |||
| 5017 | Remove and return the member with the lowest score from one or more sorted sets, or block until one is available. | ||
| 5018 | |||
| 5019 | =over 4 | ||
| 5020 | |||
| 5021 | =item * key [key ...] | ||
| 5022 | |||
| 5023 | =item * timeout | ||
| 5024 | |||
| 5025 | =back | ||
| 5026 | |||
| 5027 | L<https://redis.io/commands/bzpopmin> | ||
| 5028 | |||
| 5029 | =cut | ||
| 5030 | |||
| 5031 | 0 | ▶ | method bzpopmin (@args) { |
|
Subroutine
bzpopmin: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5032 | 0 | $self->execute_command(qw(BZPOPMIN) => @args) | |
| 5033 | 16 | } | |
| 5034 | |||
| 5035 | =head2 zadd | ||
| 5036 | |||
| 5037 | Add one or more members to a sorted set, or update its score if it already exists. | ||
| 5038 | |||
| 5039 | =over 4 | ||
| 5040 | |||
| 5041 | =item * key | ||
| 5042 | |||
| 5043 | =item * [NX|XX] | ||
| 5044 | |||
| 5045 | =item * [GT|LT] | ||
| 5046 | |||
| 5047 | =item * [CH] | ||
| 5048 | |||
| 5049 | =item * [INCR] | ||
| 5050 | |||
| 5051 | =item * score member [score member ...] | ||
| 5052 | |||
| 5053 | =back | ||
| 5054 | |||
| 5055 | L<https://redis.io/commands/zadd> | ||
| 5056 | |||
| 5057 | =cut | ||
| 5058 | |||
| 5059 | 0 | ▶ | method zadd (@args) { |
|
Subroutine
zadd: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5060 | 0 | $self->execute_command(qw(ZADD) => @args) | |
| 5061 | 16 | } | |
| 5062 | |||
| 5063 | =head2 zcard | ||
| 5064 | |||
| 5065 | Get the number of members in a sorted set. | ||
| 5066 | |||
| 5067 | =over 4 | ||
| 5068 | |||
| 5069 | =item * key | ||
| 5070 | |||
| 5071 | =back | ||
| 5072 | |||
| 5073 | L<https://redis.io/commands/zcard> | ||
| 5074 | |||
| 5075 | =cut | ||
| 5076 | |||
| 5077 | 0 | ▶ | method zcard (@args) { |
|
Subroutine
zcard: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5078 | 0 | $self->execute_command(qw(ZCARD) => @args) | |
| 5079 | 16 | } | |
| 5080 | |||
| 5081 | =head2 zcount | ||
| 5082 | |||
| 5083 | Count the members in a sorted set with scores within the given values. | ||
| 5084 | |||
| 5085 | =over 4 | ||
| 5086 | |||
| 5087 | =item * key | ||
| 5088 | |||
| 5089 | =item * min | ||
| 5090 | |||
| 5091 | =item * max | ||
| 5092 | |||
| 5093 | =back | ||
| 5094 | |||
| 5095 | L<https://redis.io/commands/zcount> | ||
| 5096 | |||
| 5097 | =cut | ||
| 5098 | |||
| 5099 | 0 | ▶ | method zcount (@args) { |
|
Subroutine
zcount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5100 | 0 | $self->execute_command(qw(ZCOUNT) => @args) | |
| 5101 | 16 | } | |
| 5102 | |||
| 5103 | =head2 zdiff | ||
| 5104 | |||
| 5105 | Subtract multiple sorted sets. | ||
| 5106 | |||
| 5107 | =over 4 | ||
| 5108 | |||
| 5109 | =item * numkeys | ||
| 5110 | |||
| 5111 | =item * key [key ...] | ||
| 5112 | |||
| 5113 | =item * [WITHSCORES] | ||
| 5114 | |||
| 5115 | =back | ||
| 5116 | |||
| 5117 | L<https://redis.io/commands/zdiff> | ||
| 5118 | |||
| 5119 | =cut | ||
| 5120 | |||
| 5121 | 0 | ▶ | method zdiff (@args) { |
|
Subroutine
zdiff: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5122 | 0 | $self->execute_command(qw(ZDIFF) => @args) | |
| 5123 | 16 | } | |
| 5124 | |||
| 5125 | =head2 zdiffstore | ||
| 5126 | |||
| 5127 | Subtract multiple sorted sets and store the resulting sorted set in a new key. | ||
| 5128 | |||
| 5129 | =over 4 | ||
| 5130 | |||
| 5131 | =item * destination | ||
| 5132 | |||
| 5133 | =item * numkeys | ||
| 5134 | |||
| 5135 | =item * key [key ...] | ||
| 5136 | |||
| 5137 | =back | ||
| 5138 | |||
| 5139 | L<https://redis.io/commands/zdiffstore> | ||
| 5140 | |||
| 5141 | =cut | ||
| 5142 | |||
| 5143 | 0 | ▶ | method zdiffstore (@args) { |
|
Subroutine
zdiffstore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5144 | 0 | $self->execute_command(qw(ZDIFFSTORE) => @args) | |
| 5145 | 16 | } | |
| 5146 | |||
| 5147 | =head2 zincrby | ||
| 5148 | |||
| 5149 | Increment the score of a member in a sorted set. | ||
| 5150 | |||
| 5151 | =over 4 | ||
| 5152 | |||
| 5153 | =item * key | ||
| 5154 | |||
| 5155 | =item * increment | ||
| 5156 | |||
| 5157 | =item * member | ||
| 5158 | |||
| 5159 | =back | ||
| 5160 | |||
| 5161 | L<https://redis.io/commands/zincrby> | ||
| 5162 | |||
| 5163 | =cut | ||
| 5164 | |||
| 5165 | 0 | ▶ | method zincrby (@args) { |
|
Subroutine
zincrby: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5166 | 0 | $self->execute_command(qw(ZINCRBY) => @args) | |
| 5167 | 16 | } | |
| 5168 | |||
| 5169 | =head2 zinter | ||
| 5170 | |||
| 5171 | Intersect multiple sorted sets. | ||
| 5172 | |||
| 5173 | =over 4 | ||
| 5174 | |||
| 5175 | =item * numkeys | ||
| 5176 | |||
| 5177 | =item * key [key ...] | ||
| 5178 | |||
| 5179 | =item * [WEIGHTS weight [weight ...]] | ||
| 5180 | |||
| 5181 | =item * [AGGREGATE SUM|MIN|MAX] | ||
| 5182 | |||
| 5183 | =item * [WITHSCORES] | ||
| 5184 | |||
| 5185 | =back | ||
| 5186 | |||
| 5187 | L<https://redis.io/commands/zinter> | ||
| 5188 | |||
| 5189 | =cut | ||
| 5190 | |||
| 5191 | 0 | ▶ | method zinter (@args) { |
|
Subroutine
zinter: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5192 | 0 | $self->execute_command(qw(ZINTER) => @args) | |
| 5193 | 16 | } | |
| 5194 | |||
| 5195 | =head2 zintercard | ||
| 5196 | |||
| 5197 | Intersect multiple sorted sets and return the cardinality of the result. | ||
| 5198 | |||
| 5199 | =over 4 | ||
| 5200 | |||
| 5201 | =item * numkeys | ||
| 5202 | |||
| 5203 | =item * key [key ...] | ||
| 5204 | |||
| 5205 | =item * [LIMIT limit] | ||
| 5206 | |||
| 5207 | =back | ||
| 5208 | |||
| 5209 | L<https://redis.io/commands/zintercard> | ||
| 5210 | |||
| 5211 | =cut | ||
| 5212 | |||
| 5213 | 0 | ▶ | method zintercard (@args) { |
|
Subroutine
zintercard: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5214 | 0 | $self->execute_command(qw(ZINTERCARD) => @args) | |
| 5215 | 16 | } | |
| 5216 | |||
| 5217 | =head2 zinterstore | ||
| 5218 | |||
| 5219 | Intersect multiple sorted sets and store the resulting sorted set in a new key. | ||
| 5220 | |||
| 5221 | =over 4 | ||
| 5222 | |||
| 5223 | =item * destination | ||
| 5224 | |||
| 5225 | =item * numkeys | ||
| 5226 | |||
| 5227 | =item * key [key ...] | ||
| 5228 | |||
| 5229 | =item * [WEIGHTS weight [weight ...]] | ||
| 5230 | |||
| 5231 | =item * [AGGREGATE SUM|MIN|MAX] | ||
| 5232 | |||
| 5233 | =back | ||
| 5234 | |||
| 5235 | L<https://redis.io/commands/zinterstore> | ||
| 5236 | |||
| 5237 | =cut | ||
| 5238 | |||
| 5239 | 0 | ▶ | method zinterstore (@args) { |
|
Subroutine
zinterstore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5240 | 0 | $self->execute_command(qw(ZINTERSTORE) => @args) | |
| 5241 | 16 | } | |
| 5242 | |||
| 5243 | =head2 zlexcount | ||
| 5244 | |||
| 5245 | Count the number of members in a sorted set between a given lexicographical range. | ||
| 5246 | |||
| 5247 | =over 4 | ||
| 5248 | |||
| 5249 | =item * key | ||
| 5250 | |||
| 5251 | =item * min | ||
| 5252 | |||
| 5253 | =item * max | ||
| 5254 | |||
| 5255 | =back | ||
| 5256 | |||
| 5257 | L<https://redis.io/commands/zlexcount> | ||
| 5258 | |||
| 5259 | =cut | ||
| 5260 | |||
| 5261 | 0 | ▶ | method zlexcount (@args) { |
|
Subroutine
zlexcount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5262 | 0 | $self->execute_command(qw(ZLEXCOUNT) => @args) | |
| 5263 | 16 | } | |
| 5264 | |||
| 5265 | =head2 zmpop | ||
| 5266 | |||
| 5267 | Remove and return members with scores in a sorted set. | ||
| 5268 | |||
| 5269 | =over 4 | ||
| 5270 | |||
| 5271 | =item * numkeys | ||
| 5272 | |||
| 5273 | =item * key [key ...] | ||
| 5274 | |||
| 5275 | =item * MIN|MAX | ||
| 5276 | |||
| 5277 | =item * [COUNT count] | ||
| 5278 | |||
| 5279 | =back | ||
| 5280 | |||
| 5281 | L<https://redis.io/commands/zmpop> | ||
| 5282 | |||
| 5283 | =cut | ||
| 5284 | |||
| 5285 | 0 | ▶ | method zmpop (@args) { |
|
Subroutine
zmpop: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5286 | 0 | $self->execute_command(qw(ZMPOP) => @args) | |
| 5287 | 16 | } | |
| 5288 | |||
| 5289 | =head2 zmscore | ||
| 5290 | |||
| 5291 | Get the score associated with the given members in a sorted set. | ||
| 5292 | |||
| 5293 | =over 4 | ||
| 5294 | |||
| 5295 | =item * key | ||
| 5296 | |||
| 5297 | =item * member [member ...] | ||
| 5298 | |||
| 5299 | =back | ||
| 5300 | |||
| 5301 | L<https://redis.io/commands/zmscore> | ||
| 5302 | |||
| 5303 | =cut | ||
| 5304 | |||
| 5305 | 0 | ▶ | method zmscore (@args) { |
|
Subroutine
zmscore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5306 | 0 | $self->execute_command(qw(ZMSCORE) => @args) | |
| 5307 | 16 | } | |
| 5308 | |||
| 5309 | =head2 zpopmax | ||
| 5310 | |||
| 5311 | Remove and return members with the highest scores in a sorted set. | ||
| 5312 | |||
| 5313 | =over 4 | ||
| 5314 | |||
| 5315 | =item * key | ||
| 5316 | |||
| 5317 | =item * [count] | ||
| 5318 | |||
| 5319 | =back | ||
| 5320 | |||
| 5321 | L<https://redis.io/commands/zpopmax> | ||
| 5322 | |||
| 5323 | =cut | ||
| 5324 | |||
| 5325 | 0 | ▶ | method zpopmax (@args) { |
|
Subroutine
zpopmax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5326 | 0 | $self->execute_command(qw(ZPOPMAX) => @args) | |
| 5327 | 16 | } | |
| 5328 | |||
| 5329 | =head2 zpopmin | ||
| 5330 | |||
| 5331 | Remove and return members with the lowest scores in a sorted set. | ||
| 5332 | |||
| 5333 | =over 4 | ||
| 5334 | |||
| 5335 | =item * key | ||
| 5336 | |||
| 5337 | =item * [count] | ||
| 5338 | |||
| 5339 | =back | ||
| 5340 | |||
| 5341 | L<https://redis.io/commands/zpopmin> | ||
| 5342 | |||
| 5343 | =cut | ||
| 5344 | |||
| 5345 | 0 | ▶ | method zpopmin (@args) { |
|
Subroutine
zpopmin: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5346 | 0 | $self->execute_command(qw(ZPOPMIN) => @args) | |
| 5347 | 16 | } | |
| 5348 | |||
| 5349 | =head2 zrandmember | ||
| 5350 | |||
| 5351 | Get one or multiple random elements from a sorted set. | ||
| 5352 | |||
| 5353 | =over 4 | ||
| 5354 | |||
| 5355 | =item * key | ||
| 5356 | |||
| 5357 | =item * [count [WITHSCORES]] | ||
| 5358 | |||
| 5359 | =back | ||
| 5360 | |||
| 5361 | L<https://redis.io/commands/zrandmember> | ||
| 5362 | |||
| 5363 | =cut | ||
| 5364 | |||
| 5365 | 0 | ▶ | method zrandmember (@args) { |
|
Subroutine
zrandmember: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5366 | 0 | $self->execute_command(qw(ZRANDMEMBER) => @args) | |
| 5367 | 16 | } | |
| 5368 | |||
| 5369 | =head2 zrange | ||
| 5370 | |||
| 5371 | Return a range of members in a sorted set. | ||
| 5372 | |||
| 5373 | =over 4 | ||
| 5374 | |||
| 5375 | =item * key | ||
| 5376 | |||
| 5377 | =item * min | ||
| 5378 | |||
| 5379 | =item * max | ||
| 5380 | |||
| 5381 | =item * [BYSCORE|BYLEX] | ||
| 5382 | |||
| 5383 | =item * [REV] | ||
| 5384 | |||
| 5385 | =item * [LIMIT offset count] | ||
| 5386 | |||
| 5387 | =item * [WITHSCORES] | ||
| 5388 | |||
| 5389 | =back | ||
| 5390 | |||
| 5391 | L<https://redis.io/commands/zrange> | ||
| 5392 | |||
| 5393 | =cut | ||
| 5394 | |||
| 5395 | 0 | ▶ | method zrange (@args) { |
|
Subroutine
zrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5396 | 0 | $self->execute_command(qw(ZRANGE) => @args) | |
| 5397 | 16 | } | |
| 5398 | |||
| 5399 | =head2 zrangebylex | ||
| 5400 | |||
| 5401 | Return a range of members in a sorted set, by lexicographical range. | ||
| 5402 | |||
| 5403 | =over 4 | ||
| 5404 | |||
| 5405 | =item * key | ||
| 5406 | |||
| 5407 | =item * min | ||
| 5408 | |||
| 5409 | =item * max | ||
| 5410 | |||
| 5411 | =item * [LIMIT offset count] | ||
| 5412 | |||
| 5413 | =back | ||
| 5414 | |||
| 5415 | L<https://redis.io/commands/zrangebylex> | ||
| 5416 | |||
| 5417 | =cut | ||
| 5418 | |||
| 5419 | 0 | ▶ | method zrangebylex (@args) { |
|
Subroutine
zrangebylex: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5420 | 0 | $self->execute_command(qw(ZRANGEBYLEX) => @args) | |
| 5421 | 16 | } | |
| 5422 | |||
| 5423 | =head2 zrangebyscore | ||
| 5424 | |||
| 5425 | Return a range of members in a sorted set, by score. | ||
| 5426 | |||
| 5427 | =over 4 | ||
| 5428 | |||
| 5429 | =item * key | ||
| 5430 | |||
| 5431 | =item * min | ||
| 5432 | |||
| 5433 | =item * max | ||
| 5434 | |||
| 5435 | =item * [WITHSCORES] | ||
| 5436 | |||
| 5437 | =item * [LIMIT offset count] | ||
| 5438 | |||
| 5439 | =back | ||
| 5440 | |||
| 5441 | L<https://redis.io/commands/zrangebyscore> | ||
| 5442 | |||
| 5443 | =cut | ||
| 5444 | |||
| 5445 | 0 | ▶ | method zrangebyscore (@args) { |
|
Subroutine
zrangebyscore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5446 | 0 | $self->execute_command(qw(ZRANGEBYSCORE) => @args) | |
| 5447 | 16 | } | |
| 5448 | |||
| 5449 | =head2 zrangestore | ||
| 5450 | |||
| 5451 | Store a range of members from sorted set into another key. | ||
| 5452 | |||
| 5453 | =over 4 | ||
| 5454 | |||
| 5455 | =item * dst | ||
| 5456 | |||
| 5457 | =item * src | ||
| 5458 | |||
| 5459 | =item * min | ||
| 5460 | |||
| 5461 | =item * max | ||
| 5462 | |||
| 5463 | =item * [BYSCORE|BYLEX] | ||
| 5464 | |||
| 5465 | =item * [REV] | ||
| 5466 | |||
| 5467 | =item * [LIMIT offset count] | ||
| 5468 | |||
| 5469 | =back | ||
| 5470 | |||
| 5471 | L<https://redis.io/commands/zrangestore> | ||
| 5472 | |||
| 5473 | =cut | ||
| 5474 | |||
| 5475 | 0 | ▶ | method zrangestore (@args) { |
|
Subroutine
zrangestore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5476 | 0 | $self->execute_command(qw(ZRANGESTORE) => @args) | |
| 5477 | 16 | } | |
| 5478 | |||
| 5479 | =head2 zrank | ||
| 5480 | |||
| 5481 | Determine the index of a member in a sorted set. | ||
| 5482 | |||
| 5483 | =over 4 | ||
| 5484 | |||
| 5485 | =item * key | ||
| 5486 | |||
| 5487 | =item * member | ||
| 5488 | |||
| 5489 | =back | ||
| 5490 | |||
| 5491 | L<https://redis.io/commands/zrank> | ||
| 5492 | |||
| 5493 | =cut | ||
| 5494 | |||
| 5495 | 0 | ▶ | method zrank (@args) { |
|
Subroutine
zrank: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5496 | 0 | $self->execute_command(qw(ZRANK) => @args) | |
| 5497 | 16 | } | |
| 5498 | |||
| 5499 | =head2 zrem | ||
| 5500 | |||
| 5501 | Remove one or more members from a sorted set. | ||
| 5502 | |||
| 5503 | =over 4 | ||
| 5504 | |||
| 5505 | =item * key | ||
| 5506 | |||
| 5507 | =item * member [member ...] | ||
| 5508 | |||
| 5509 | =back | ||
| 5510 | |||
| 5511 | L<https://redis.io/commands/zrem> | ||
| 5512 | |||
| 5513 | =cut | ||
| 5514 | |||
| 5515 | 0 | ▶ | method zrem (@args) { |
|
Subroutine
zrem: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5516 | 0 | $self->execute_command(qw(ZREM) => @args) | |
| 5517 | 16 | } | |
| 5518 | |||
| 5519 | =head2 zremrangebylex | ||
| 5520 | |||
| 5521 | Remove all members in a sorted set between the given lexicographical range. | ||
| 5522 | |||
| 5523 | =over 4 | ||
| 5524 | |||
| 5525 | =item * key | ||
| 5526 | |||
| 5527 | =item * min | ||
| 5528 | |||
| 5529 | =item * max | ||
| 5530 | |||
| 5531 | =back | ||
| 5532 | |||
| 5533 | L<https://redis.io/commands/zremrangebylex> | ||
| 5534 | |||
| 5535 | =cut | ||
| 5536 | |||
| 5537 | 0 | ▶ | method zremrangebylex (@args) { |
|
Subroutine
zremrangebylex: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5538 | 0 | $self->execute_command(qw(ZREMRANGEBYLEX) => @args) | |
| 5539 | 16 | } | |
| 5540 | |||
| 5541 | =head2 zremrangebyrank | ||
| 5542 | |||
| 5543 | Remove all members in a sorted set within the given indexes. | ||
| 5544 | |||
| 5545 | =over 4 | ||
| 5546 | |||
| 5547 | =item * key | ||
| 5548 | |||
| 5549 | =item * start | ||
| 5550 | |||
| 5551 | =item * stop | ||
| 5552 | |||
| 5553 | =back | ||
| 5554 | |||
| 5555 | L<https://redis.io/commands/zremrangebyrank> | ||
| 5556 | |||
| 5557 | =cut | ||
| 5558 | |||
| 5559 | 0 | ▶ | method zremrangebyrank (@args) { |
|
Subroutine
zremrangebyrank: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5560 | 0 | $self->execute_command(qw(ZREMRANGEBYRANK) => @args) | |
| 5561 | 16 | } | |
| 5562 | |||
| 5563 | =head2 zremrangebyscore | ||
| 5564 | |||
| 5565 | Remove all members in a sorted set within the given scores. | ||
| 5566 | |||
| 5567 | =over 4 | ||
| 5568 | |||
| 5569 | =item * key | ||
| 5570 | |||
| 5571 | =item * min | ||
| 5572 | |||
| 5573 | =item * max | ||
| 5574 | |||
| 5575 | =back | ||
| 5576 | |||
| 5577 | L<https://redis.io/commands/zremrangebyscore> | ||
| 5578 | |||
| 5579 | =cut | ||
| 5580 | |||
| 5581 | 0 | ▶ | method zremrangebyscore (@args) { |
|
Subroutine
zremrangebyscore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5582 | 0 | $self->execute_command(qw(ZREMRANGEBYSCORE) => @args) | |
| 5583 | 16 | } | |
| 5584 | |||
| 5585 | =head2 zrevrange | ||
| 5586 | |||
| 5587 | Return a range of members in a sorted set, by index, with scores ordered from high to low. | ||
| 5588 | |||
| 5589 | =over 4 | ||
| 5590 | |||
| 5591 | =item * key | ||
| 5592 | |||
| 5593 | =item * start | ||
| 5594 | |||
| 5595 | =item * stop | ||
| 5596 | |||
| 5597 | =item * [WITHSCORES] | ||
| 5598 | |||
| 5599 | =back | ||
| 5600 | |||
| 5601 | L<https://redis.io/commands/zrevrange> | ||
| 5602 | |||
| 5603 | =cut | ||
| 5604 | |||
| 5605 | 0 | ▶ | method zrevrange (@args) { |
|
Subroutine
zrevrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5606 | 0 | $self->execute_command(qw(ZREVRANGE) => @args) | |
| 5607 | 16 | } | |
| 5608 | |||
| 5609 | =head2 zrevrangebylex | ||
| 5610 | |||
| 5611 | Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings. | ||
| 5612 | |||
| 5613 | =over 4 | ||
| 5614 | |||
| 5615 | =item * key | ||
| 5616 | |||
| 5617 | =item * max | ||
| 5618 | |||
| 5619 | =item * min | ||
| 5620 | |||
| 5621 | =item * [LIMIT offset count] | ||
| 5622 | |||
| 5623 | =back | ||
| 5624 | |||
| 5625 | L<https://redis.io/commands/zrevrangebylex> | ||
| 5626 | |||
| 5627 | =cut | ||
| 5628 | |||
| 5629 | 0 | ▶ | method zrevrangebylex (@args) { |
|
Subroutine
zrevrangebylex: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5630 | 0 | $self->execute_command(qw(ZREVRANGEBYLEX) => @args) | |
| 5631 | 16 | } | |
| 5632 | |||
| 5633 | =head2 zrevrangebyscore | ||
| 5634 | |||
| 5635 | Return a range of members in a sorted set, by score, with scores ordered from high to low. | ||
| 5636 | |||
| 5637 | =over 4 | ||
| 5638 | |||
| 5639 | =item * key | ||
| 5640 | |||
| 5641 | =item * max | ||
| 5642 | |||
| 5643 | =item * min | ||
| 5644 | |||
| 5645 | =item * [WITHSCORES] | ||
| 5646 | |||
| 5647 | =item * [LIMIT offset count] | ||
| 5648 | |||
| 5649 | =back | ||
| 5650 | |||
| 5651 | L<https://redis.io/commands/zrevrangebyscore> | ||
| 5652 | |||
| 5653 | =cut | ||
| 5654 | |||
| 5655 | 0 | ▶ | method zrevrangebyscore (@args) { |
|
Subroutine
zrevrangebyscore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5656 | 0 | $self->execute_command(qw(ZREVRANGEBYSCORE) => @args) | |
| 5657 | 16 | } | |
| 5658 | |||
| 5659 | =head2 zrevrank | ||
| 5660 | |||
| 5661 | Determine the index of a member in a sorted set, with scores ordered from high to low. | ||
| 5662 | |||
| 5663 | =over 4 | ||
| 5664 | |||
| 5665 | =item * key | ||
| 5666 | |||
| 5667 | =item * member | ||
| 5668 | |||
| 5669 | =back | ||
| 5670 | |||
| 5671 | L<https://redis.io/commands/zrevrank> | ||
| 5672 | |||
| 5673 | =cut | ||
| 5674 | |||
| 5675 | 0 | ▶ | method zrevrank (@args) { |
|
Subroutine
zrevrank: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5676 | 0 | $self->execute_command(qw(ZREVRANK) => @args) | |
| 5677 | 16 | } | |
| 5678 | |||
| 5679 | =head2 zscan | ||
| 5680 | |||
| 5681 | Incrementally iterate sorted sets elements and associated scores. | ||
| 5682 | |||
| 5683 | =over 4 | ||
| 5684 | |||
| 5685 | =item * key | ||
| 5686 | |||
| 5687 | =item * cursor | ||
| 5688 | |||
| 5689 | =item * [MATCH pattern] | ||
| 5690 | |||
| 5691 | =item * [COUNT count] | ||
| 5692 | |||
| 5693 | =back | ||
| 5694 | |||
| 5695 | L<https://redis.io/commands/zscan> | ||
| 5696 | |||
| 5697 | =cut | ||
| 5698 | |||
| 5699 | 0 | ▶ | method zscan (@args) { |
|
Subroutine
zscan: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5700 | 0 | $self->execute_command(qw(ZSCAN) => @args) | |
| 5701 | 16 | } | |
| 5702 | |||
| 5703 | =head2 zscore | ||
| 5704 | |||
| 5705 | Get the score associated with the given member in a sorted set. | ||
| 5706 | |||
| 5707 | =over 4 | ||
| 5708 | |||
| 5709 | =item * key | ||
| 5710 | |||
| 5711 | =item * member | ||
| 5712 | |||
| 5713 | =back | ||
| 5714 | |||
| 5715 | L<https://redis.io/commands/zscore> | ||
| 5716 | |||
| 5717 | =cut | ||
| 5718 | |||
| 5719 | 0 | ▶ | method zscore (@args) { |
|
Subroutine
zscore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5720 | 0 | $self->execute_command(qw(ZSCORE) => @args) | |
| 5721 | 16 | } | |
| 5722 | |||
| 5723 | =head2 zunion | ||
| 5724 | |||
| 5725 | Add multiple sorted sets. | ||
| 5726 | |||
| 5727 | =over 4 | ||
| 5728 | |||
| 5729 | =item * numkeys | ||
| 5730 | |||
| 5731 | =item * key [key ...] | ||
| 5732 | |||
| 5733 | =item * [WEIGHTS weight [weight ...]] | ||
| 5734 | |||
| 5735 | =item * [AGGREGATE SUM|MIN|MAX] | ||
| 5736 | |||
| 5737 | =item * [WITHSCORES] | ||
| 5738 | |||
| 5739 | =back | ||
| 5740 | |||
| 5741 | L<https://redis.io/commands/zunion> | ||
| 5742 | |||
| 5743 | =cut | ||
| 5744 | |||
| 5745 | 0 | ▶ | method zunion (@args) { |
|
Subroutine
zunion: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5746 | 0 | $self->execute_command(qw(ZUNION) => @args) | |
| 5747 | 16 | } | |
| 5748 | |||
| 5749 | =head2 zunionstore | ||
| 5750 | |||
| 5751 | Add multiple sorted sets and store the resulting sorted set in a new key. | ||
| 5752 | |||
| 5753 | =over 4 | ||
| 5754 | |||
| 5755 | =item * destination | ||
| 5756 | |||
| 5757 | =item * numkeys | ||
| 5758 | |||
| 5759 | =item * key [key ...] | ||
| 5760 | |||
| 5761 | =item * [WEIGHTS weight [weight ...]] | ||
| 5762 | |||
| 5763 | =item * [AGGREGATE SUM|MIN|MAX] | ||
| 5764 | |||
| 5765 | =back | ||
| 5766 | |||
| 5767 | L<https://redis.io/commands/zunionstore> | ||
| 5768 | |||
| 5769 | =cut | ||
| 5770 | |||
| 5771 | 0 | ▶ | method zunionstore (@args) { |
|
Subroutine
zunionstore: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5772 | 0 | $self->execute_command(qw(ZUNIONSTORE) => @args) | |
| 5773 | 16 | } | |
| 5774 | |||
| 5775 | =head1 METHODS - Stream | ||
| 5776 | |||
| 5777 | =head2 xack | ||
| 5778 | |||
| 5779 | 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. | ||
| 5780 | |||
| 5781 | =over 4 | ||
| 5782 | |||
| 5783 | =item * key | ||
| 5784 | |||
| 5785 | =item * group | ||
| 5786 | |||
| 5787 | =item * id [id ...] | ||
| 5788 | |||
| 5789 | =back | ||
| 5790 | |||
| 5791 | L<https://redis.io/commands/xack> | ||
| 5792 | |||
| 5793 | =cut | ||
| 5794 | |||
| 5795 | 0 | ▶ | method xack (@args) { |
|
Subroutine
xack: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5796 | 0 | $self->execute_command(qw(XACK) => @args) | |
| 5797 | 16 | } | |
| 5798 | |||
| 5799 | =head2 xadd | ||
| 5800 | |||
| 5801 | Appends a new entry to a stream. | ||
| 5802 | |||
| 5803 | =over 4 | ||
| 5804 | |||
| 5805 | =item * key | ||
| 5806 | |||
| 5807 | =item * [NOMKSTREAM] | ||
| 5808 | |||
| 5809 | =item * [MAXLEN|MINID [=|~] threshold [LIMIT count]] | ||
| 5810 | |||
| 5811 | =item * *|id | ||
| 5812 | |||
| 5813 | =item * field value [field value ...] | ||
| 5814 | |||
| 5815 | =back | ||
| 5816 | |||
| 5817 | L<https://redis.io/commands/xadd> | ||
| 5818 | |||
| 5819 | =cut | ||
| 5820 | |||
| 5821 | 0 | ▶ | method xadd (@args) { |
|
Subroutine
xadd: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5822 | 0 | $self->execute_command(qw(XADD) => @args) | |
| 5823 | 16 | } | |
| 5824 | |||
| 5825 | =head2 xautoclaim | ||
| 5826 | |||
| 5827 | Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to the specified consumer. | ||
| 5828 | |||
| 5829 | =over 4 | ||
| 5830 | |||
| 5831 | =item * key | ||
| 5832 | |||
| 5833 | =item * group | ||
| 5834 | |||
| 5835 | =item * consumer | ||
| 5836 | |||
| 5837 | =item * min-idle-time | ||
| 5838 | |||
| 5839 | =item * start | ||
| 5840 | |||
| 5841 | =item * [COUNT count] | ||
| 5842 | |||
| 5843 | =item * [JUSTID] | ||
| 5844 | |||
| 5845 | =back | ||
| 5846 | |||
| 5847 | L<https://redis.io/commands/xautoclaim> | ||
| 5848 | |||
| 5849 | =cut | ||
| 5850 | |||
| 5851 | 0 | ▶ | method xautoclaim (@args) { |
|
Subroutine
xautoclaim: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5852 | 0 | $self->execute_command(qw(XAUTOCLAIM) => @args) | |
| 5853 | 16 | } | |
| 5854 | |||
| 5855 | =head2 xclaim | ||
| 5856 | |||
| 5857 | Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer. | ||
| 5858 | |||
| 5859 | =over 4 | ||
| 5860 | |||
| 5861 | =item * key | ||
| 5862 | |||
| 5863 | =item * group | ||
| 5864 | |||
| 5865 | =item * consumer | ||
| 5866 | |||
| 5867 | =item * min-idle-time | ||
| 5868 | |||
| 5869 | =item * id [id ...] | ||
| 5870 | |||
| 5871 | =item * [IDLE ms] | ||
| 5872 | |||
| 5873 | =item * [TIME unix-time-milliseconds] | ||
| 5874 | |||
| 5875 | =item * [RETRYCOUNT count] | ||
| 5876 | |||
| 5877 | =item * [FORCE] | ||
| 5878 | |||
| 5879 | =item * [JUSTID] | ||
| 5880 | |||
| 5881 | =back | ||
| 5882 | |||
| 5883 | L<https://redis.io/commands/xclaim> | ||
| 5884 | |||
| 5885 | =cut | ||
| 5886 | |||
| 5887 | 0 | ▶ | method xclaim (@args) { |
|
Subroutine
xclaim: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5888 | 0 | $self->execute_command(qw(XCLAIM) => @args) | |
| 5889 | 16 | } | |
| 5890 | |||
| 5891 | =head2 xdel | ||
| 5892 | |||
| 5893 | 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. | ||
| 5894 | |||
| 5895 | =over 4 | ||
| 5896 | |||
| 5897 | =item * key | ||
| 5898 | |||
| 5899 | =item * id [id ...] | ||
| 5900 | |||
| 5901 | =back | ||
| 5902 | |||
| 5903 | L<https://redis.io/commands/xdel> | ||
| 5904 | |||
| 5905 | =cut | ||
| 5906 | |||
| 5907 | 0 | ▶ | method xdel (@args) { |
|
Subroutine
xdel: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5908 | 0 | $self->execute_command(qw(XDEL) => @args) | |
| 5909 | 16 | } | |
| 5910 | |||
| 5911 | =head2 xgroup_create | ||
| 5912 | |||
| 5913 | Create a consumer group. | ||
| 5914 | |||
| 5915 | =over 4 | ||
| 5916 | |||
| 5917 | =item * key | ||
| 5918 | |||
| 5919 | =item * groupname | ||
| 5920 | |||
| 5921 | =item * id|$ | ||
| 5922 | |||
| 5923 | =item * [MKSTREAM] | ||
| 5924 | |||
| 5925 | =item * [ENTRIESREAD entries_read] | ||
| 5926 | |||
| 5927 | =back | ||
| 5928 | |||
| 5929 | L<https://redis.io/commands/xgroup-create> | ||
| 5930 | |||
| 5931 | =cut | ||
| 5932 | |||
| 5933 | 0 | ▶ | method xgroup_create (@args) { |
|
Subroutine
xgroup_create: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5934 | 0 | $self->execute_command(qw(XGROUP CREATE) => @args) | |
| 5935 | 16 | } | |
| 5936 | |||
| 5937 | =head2 xgroup_createconsumer | ||
| 5938 | |||
| 5939 | Create a consumer in a consumer group. | ||
| 5940 | |||
| 5941 | =over 4 | ||
| 5942 | |||
| 5943 | =item * key | ||
| 5944 | |||
| 5945 | =item * groupname | ||
| 5946 | |||
| 5947 | =item * consumername | ||
| 5948 | |||
| 5949 | =back | ||
| 5950 | |||
| 5951 | L<https://redis.io/commands/xgroup-createconsumer> | ||
| 5952 | |||
| 5953 | =cut | ||
| 5954 | |||
| 5955 | 0 | ▶ | method xgroup_createconsumer (@args) { |
|
Subroutine
xgroup_createconsumer: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5956 | 0 | $self->execute_command(qw(XGROUP CREATECONSUMER) => @args) | |
| 5957 | 16 | } | |
| 5958 | |||
| 5959 | =head2 xgroup_delconsumer | ||
| 5960 | |||
| 5961 | Delete a consumer from a consumer group. | ||
| 5962 | |||
| 5963 | =over 4 | ||
| 5964 | |||
| 5965 | =item * key | ||
| 5966 | |||
| 5967 | =item * groupname | ||
| 5968 | |||
| 5969 | =item * consumername | ||
| 5970 | |||
| 5971 | =back | ||
| 5972 | |||
| 5973 | L<https://redis.io/commands/xgroup-delconsumer> | ||
| 5974 | |||
| 5975 | =cut | ||
| 5976 | |||
| 5977 | 0 | ▶ | method xgroup_delconsumer (@args) { |
|
Subroutine
xgroup_delconsumer: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5978 | 0 | $self->execute_command(qw(XGROUP DELCONSUMER) => @args) | |
| 5979 | 16 | } | |
| 5980 | |||
| 5981 | =head2 xgroup_destroy | ||
| 5982 | |||
| 5983 | Destroy a consumer group. | ||
| 5984 | |||
| 5985 | =over 4 | ||
| 5986 | |||
| 5987 | =item * key | ||
| 5988 | |||
| 5989 | =item * groupname | ||
| 5990 | |||
| 5991 | =back | ||
| 5992 | |||
| 5993 | L<https://redis.io/commands/xgroup-destroy> | ||
| 5994 | |||
| 5995 | =cut | ||
| 5996 | |||
| 5997 | 0 | ▶ | method xgroup_destroy (@args) { |
|
Subroutine
xgroup_destroy: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5998 | 0 | $self->execute_command(qw(XGROUP DESTROY) => @args) | |
| 5999 | 16 | } | |
| 6000 | |||
| 6001 | =head2 xgroup_setid | ||
| 6002 | |||
| 6003 | Set a consumer group to an arbitrary last delivered ID value. | ||
| 6004 | |||
| 6005 | =over 4 | ||
| 6006 | |||
| 6007 | =item * key | ||
| 6008 | |||
| 6009 | =item * groupname | ||
| 6010 | |||
| 6011 | =item * id|$ | ||
| 6012 | |||
| 6013 | =item * [ENTRIESREAD entries_read] | ||
| 6014 | |||
| 6015 | =back | ||
| 6016 | |||
| 6017 | L<https://redis.io/commands/xgroup-setid> | ||
| 6018 | |||
| 6019 | =cut | ||
| 6020 | |||
| 6021 | 0 | ▶ | method xgroup_setid (@args) { |
|
Subroutine
xgroup_setid: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6022 | 0 | $self->execute_command(qw(XGROUP SETID) => @args) | |
| 6023 | 16 | } | |
| 6024 | |||
| 6025 | =head2 xinfo_consumers | ||
| 6026 | |||
| 6027 | List the consumers in a consumer group. | ||
| 6028 | |||
| 6029 | =over 4 | ||
| 6030 | |||
| 6031 | =item * key | ||
| 6032 | |||
| 6033 | =item * groupname | ||
| 6034 | |||
| 6035 | =back | ||
| 6036 | |||
| 6037 | L<https://redis.io/commands/xinfo-consumers> | ||
| 6038 | |||
| 6039 | =cut | ||
| 6040 | |||
| 6041 | 0 | ▶ | method xinfo_consumers (@args) { |
|
Subroutine
xinfo_consumers: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6042 | 0 | $self->execute_command(qw(XINFO CONSUMERS) => @args) | |
| 6043 | 16 | } | |
| 6044 | |||
| 6045 | =head2 xinfo_groups | ||
| 6046 | |||
| 6047 | List the consumer groups of a stream. | ||
| 6048 | |||
| 6049 | =over 4 | ||
| 6050 | |||
| 6051 | =item * key | ||
| 6052 | |||
| 6053 | =back | ||
| 6054 | |||
| 6055 | L<https://redis.io/commands/xinfo-groups> | ||
| 6056 | |||
| 6057 | =cut | ||
| 6058 | |||
| 6059 | 0 | ▶ | method xinfo_groups (@args) { |
|
Subroutine
xinfo_groups: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6060 | 0 | $self->execute_command(qw(XINFO GROUPS) => @args) | |
| 6061 | 16 | } | |
| 6062 | |||
| 6063 | =head2 xinfo_stream | ||
| 6064 | |||
| 6065 | Get information about a stream. | ||
| 6066 | |||
| 6067 | =over 4 | ||
| 6068 | |||
| 6069 | =item * key | ||
| 6070 | |||
| 6071 | =item * [FULL [COUNT count]] | ||
| 6072 | |||
| 6073 | =back | ||
| 6074 | |||
| 6075 | L<https://redis.io/commands/xinfo-stream> | ||
| 6076 | |||
| 6077 | =cut | ||
| 6078 | |||
| 6079 | 0 | ▶ | method xinfo_stream (@args) { |
|
Subroutine
xinfo_stream: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6080 | 0 | $self->execute_command(qw(XINFO STREAM) => @args) | |
| 6081 | 16 | } | |
| 6082 | |||
| 6083 | =head2 xlen | ||
| 6084 | |||
| 6085 | Return the number of entries in a stream. | ||
| 6086 | |||
| 6087 | =over 4 | ||
| 6088 | |||
| 6089 | =item * key | ||
| 6090 | |||
| 6091 | =back | ||
| 6092 | |||
| 6093 | L<https://redis.io/commands/xlen> | ||
| 6094 | |||
| 6095 | =cut | ||
| 6096 | |||
| 6097 | 0 | ▶ | method xlen (@args) { |
|
Subroutine
xlen: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6098 | 0 | $self->execute_command(qw(XLEN) => @args) | |
| 6099 | 16 | } | |
| 6100 | |||
| 6101 | =head2 xpending | ||
| 6102 | |||
| 6103 | Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged. | ||
| 6104 | |||
| 6105 | =over 4 | ||
| 6106 | |||
| 6107 | =item * key | ||
| 6108 | |||
| 6109 | =item * group | ||
| 6110 | |||
| 6111 | =item * [[IDLE min-idle-time] start end count [consumer]] | ||
| 6112 | |||
| 6113 | =back | ||
| 6114 | |||
| 6115 | L<https://redis.io/commands/xpending> | ||
| 6116 | |||
| 6117 | =cut | ||
| 6118 | |||
| 6119 | 0 | ▶ | method xpending (@args) { |
|
Subroutine
xpending: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6120 | 0 | $self->execute_command(qw(XPENDING) => @args) | |
| 6121 | 16 | } | |
| 6122 | |||
| 6123 | =head2 xrange | ||
| 6124 | |||
| 6125 | Return a range of elements in a stream, with IDs matching the specified IDs interval. | ||
| 6126 | |||
| 6127 | =over 4 | ||
| 6128 | |||
| 6129 | =item * key | ||
| 6130 | |||
| 6131 | =item * start | ||
| 6132 | |||
| 6133 | =item * end | ||
| 6134 | |||
| 6135 | =item * [COUNT count] | ||
| 6136 | |||
| 6137 | =back | ||
| 6138 | |||
| 6139 | L<https://redis.io/commands/xrange> | ||
| 6140 | |||
| 6141 | =cut | ||
| 6142 | |||
| 6143 | 0 | ▶ | method xrange (@args) { |
|
Subroutine
xrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6144 | 0 | $self->execute_command(qw(XRANGE) => @args) | |
| 6145 | 16 | } | |
| 6146 | |||
| 6147 | =head2 xread | ||
| 6148 | |||
| 6149 | Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block. | ||
| 6150 | |||
| 6151 | =over 4 | ||
| 6152 | |||
| 6153 | =item * [COUNT count] | ||
| 6154 | |||
| 6155 | =item * [BLOCK milliseconds] | ||
| 6156 | |||
| 6157 | =item * STREAMS key [key ...] id [id ...] | ||
| 6158 | |||
| 6159 | =back | ||
| 6160 | |||
| 6161 | L<https://redis.io/commands/xread> | ||
| 6162 | |||
| 6163 | =cut | ||
| 6164 | |||
| 6165 | 0 | ▶ | method xread (@args) { |
|
Subroutine
xread: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6166 | 0 | $self->execute_command(qw(XREAD) => @args) | |
| 6167 | 16 | } | |
| 6168 | |||
| 6169 | =head2 xreadgroup | ||
| 6170 | |||
| 6171 | Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block. | ||
| 6172 | |||
| 6173 | =over 4 | ||
| 6174 | |||
| 6175 | =item * GROUP group consumer | ||
| 6176 | |||
| 6177 | =item * [COUNT count] | ||
| 6178 | |||
| 6179 | =item * [BLOCK milliseconds] | ||
| 6180 | |||
| 6181 | =item * [NOACK] | ||
| 6182 | |||
| 6183 | =item * STREAMS key [key ...] id [id ...] | ||
| 6184 | |||
| 6185 | =back | ||
| 6186 | |||
| 6187 | L<https://redis.io/commands/xreadgroup> | ||
| 6188 | |||
| 6189 | =cut | ||
| 6190 | |||
| 6191 | 0 | ▶ | method xreadgroup (@args) { |
|
Subroutine
xreadgroup: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6192 | 0 | $self->execute_command(qw(XREADGROUP) => @args) | |
| 6193 | 16 | } | |
| 6194 | |||
| 6195 | =head2 xrevrange | ||
| 6196 | |||
| 6197 | 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. | ||
| 6198 | |||
| 6199 | =over 4 | ||
| 6200 | |||
| 6201 | =item * key | ||
| 6202 | |||
| 6203 | =item * end | ||
| 6204 | |||
| 6205 | =item * start | ||
| 6206 | |||
| 6207 | =item * [COUNT count] | ||
| 6208 | |||
| 6209 | =back | ||
| 6210 | |||
| 6211 | L<https://redis.io/commands/xrevrange> | ||
| 6212 | |||
| 6213 | =cut | ||
| 6214 | |||
| 6215 | 0 | ▶ | method xrevrange (@args) { |
|
Subroutine
xrevrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6216 | 0 | $self->execute_command(qw(XREVRANGE) => @args) | |
| 6217 | 16 | } | |
| 6218 | |||
| 6219 | =head2 xsetid | ||
| 6220 | |||
| 6221 | An internal command for replicating stream values. | ||
| 6222 | |||
| 6223 | =over 4 | ||
| 6224 | |||
| 6225 | =item * key | ||
| 6226 | |||
| 6227 | =item * last-id | ||
| 6228 | |||
| 6229 | =item * [ENTRIESADDED entries_added] | ||
| 6230 | |||
| 6231 | =item * [MAXDELETEDID max_deleted_entry_id] | ||
| 6232 | |||
| 6233 | =back | ||
| 6234 | |||
| 6235 | L<https://redis.io/commands/xsetid> | ||
| 6236 | |||
| 6237 | =cut | ||
| 6238 | |||
| 6239 | 0 | ▶ | method xsetid (@args) { |
|
Subroutine
xsetid: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6240 | 0 | $self->execute_command(qw(XSETID) => @args) | |
| 6241 | 16 | } | |
| 6242 | |||
| 6243 | =head2 xtrim | ||
| 6244 | |||
| 6245 | Trims the stream to (approximately if '~' is passed) a certain size. | ||
| 6246 | |||
| 6247 | =over 4 | ||
| 6248 | |||
| 6249 | =item * key | ||
| 6250 | |||
| 6251 | =item * MAXLEN|MINID [=|~] threshold [LIMIT count] | ||
| 6252 | |||
| 6253 | =back | ||
| 6254 | |||
| 6255 | L<https://redis.io/commands/xtrim> | ||
| 6256 | |||
| 6257 | =cut | ||
| 6258 | |||
| 6259 | 0 | ▶ | method xtrim (@args) { |
|
Subroutine
xtrim: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6260 | 0 | $self->execute_command(qw(XTRIM) => @args) | |
| 6261 | 16 | } | |
| 6262 | |||
| 6263 | =head1 METHODS - String | ||
| 6264 | |||
| 6265 | =head2 append | ||
| 6266 | |||
| 6267 | Append a value to a key. | ||
| 6268 | |||
| 6269 | =over 4 | ||
| 6270 | |||
| 6271 | =item * key | ||
| 6272 | |||
| 6273 | =item * value | ||
| 6274 | |||
| 6275 | =back | ||
| 6276 | |||
| 6277 | L<https://redis.io/commands/append> | ||
| 6278 | |||
| 6279 | =cut | ||
| 6280 | |||
| 6281 | 0 | ▶ | method append (@args) { |
|
Subroutine
append: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6282 | 0 | $self->execute_command(qw(APPEND) => @args) | |
| 6283 | 16 | } | |
| 6284 | |||
| 6285 | =head2 decr | ||
| 6286 | |||
| 6287 | Decrement the integer value of a key by one. | ||
| 6288 | |||
| 6289 | =over 4 | ||
| 6290 | |||
| 6291 | =item * key | ||
| 6292 | |||
| 6293 | =back | ||
| 6294 | |||
| 6295 | L<https://redis.io/commands/decr> | ||
| 6296 | |||
| 6297 | =cut | ||
| 6298 | |||
| 6299 | 0 | ▶ | method decr (@args) { |
|
Subroutine
decr: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6300 | 0 | $self->execute_command(qw(DECR) => @args) | |
| 6301 | 16 | } | |
| 6302 | |||
| 6303 | =head2 decrby | ||
| 6304 | |||
| 6305 | Decrement the integer value of a key by the given number. | ||
| 6306 | |||
| 6307 | =over 4 | ||
| 6308 | |||
| 6309 | =item * key | ||
| 6310 | |||
| 6311 | =item * decrement | ||
| 6312 | |||
| 6313 | =back | ||
| 6314 | |||
| 6315 | L<https://redis.io/commands/decrby> | ||
| 6316 | |||
| 6317 | =cut | ||
| 6318 | |||
| 6319 | 0 | ▶ | method decrby (@args) { |
|
Subroutine
decrby: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6320 | 0 | $self->execute_command(qw(DECRBY) => @args) | |
| 6321 | 16 | } | |
| 6322 | |||
| 6323 | =head2 get | ||
| 6324 | |||
| 6325 | Get the value of a key. | ||
| 6326 | |||
| 6327 | =over 4 | ||
| 6328 | |||
| 6329 | =item * key | ||
| 6330 | |||
| 6331 | =back | ||
| 6332 | |||
| 6333 | L<https://redis.io/commands/get> | ||
| 6334 | |||
| 6335 | =cut | ||
| 6336 | |||
| 6337 | 0 | ▶ | method get (@args) { |
|
Subroutine
get: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6338 | 0 | $self->execute_command(qw(GET) => @args) | |
| 6339 | 16 | } | |
| 6340 | |||
| 6341 | =head2 getdel | ||
| 6342 | |||
| 6343 | Get the value of a key and delete the key. | ||
| 6344 | |||
| 6345 | =over 4 | ||
| 6346 | |||
| 6347 | =item * key | ||
| 6348 | |||
| 6349 | =back | ||
| 6350 | |||
| 6351 | L<https://redis.io/commands/getdel> | ||
| 6352 | |||
| 6353 | =cut | ||
| 6354 | |||
| 6355 | 0 | ▶ | method getdel (@args) { |
|
Subroutine
getdel: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6356 | 0 | $self->execute_command(qw(GETDEL) => @args) | |
| 6357 | 16 | } | |
| 6358 | |||
| 6359 | =head2 getex | ||
| 6360 | |||
| 6361 | Get the value of a key and optionally set its expiration. | ||
| 6362 | |||
| 6363 | =over 4 | ||
| 6364 | |||
| 6365 | =item * key | ||
| 6366 | |||
| 6367 | =item * [EX seconds|PX milliseconds|EXAT unix-time-seconds|PXAT unix-time-milliseconds|PERSIST] | ||
| 6368 | |||
| 6369 | =back | ||
| 6370 | |||
| 6371 | L<https://redis.io/commands/getex> | ||
| 6372 | |||
| 6373 | =cut | ||
| 6374 | |||
| 6375 | 0 | ▶ | method getex (@args) { |
|
Subroutine
getex: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6376 | 0 | $self->execute_command(qw(GETEX) => @args) | |
| 6377 | 16 | } | |
| 6378 | |||
| 6379 | =head2 getrange | ||
| 6380 | |||
| 6381 | Get a substring of the string stored at a key. | ||
| 6382 | |||
| 6383 | =over 4 | ||
| 6384 | |||
| 6385 | =item * key | ||
| 6386 | |||
| 6387 | =item * start | ||
| 6388 | |||
| 6389 | =item * end | ||
| 6390 | |||
| 6391 | =back | ||
| 6392 | |||
| 6393 | L<https://redis.io/commands/getrange> | ||
| 6394 | |||
| 6395 | =cut | ||
| 6396 | |||
| 6397 | 0 | ▶ | method getrange (@args) { |
|
Subroutine
getrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6398 | 0 | $self->execute_command(qw(GETRANGE) => @args) | |
| 6399 | 16 | } | |
| 6400 | |||
| 6401 | =head2 getset | ||
| 6402 | |||
| 6403 | Set the string value of a key and return its old value. | ||
| 6404 | |||
| 6405 | =over 4 | ||
| 6406 | |||
| 6407 | =item * key | ||
| 6408 | |||
| 6409 | =item * value | ||
| 6410 | |||
| 6411 | =back | ||
| 6412 | |||
| 6413 | L<https://redis.io/commands/getset> | ||
| 6414 | |||
| 6415 | =cut | ||
| 6416 | |||
| 6417 | 0 | ▶ | method getset (@args) { |
|
Subroutine
getset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6418 | 0 | $self->execute_command(qw(GETSET) => @args) | |
| 6419 | 16 | } | |
| 6420 | |||
| 6421 | =head2 incr | ||
| 6422 | |||
| 6423 | Increment the integer value of a key by one. | ||
| 6424 | |||
| 6425 | =over 4 | ||
| 6426 | |||
| 6427 | =item * key | ||
| 6428 | |||
| 6429 | =back | ||
| 6430 | |||
| 6431 | L<https://redis.io/commands/incr> | ||
| 6432 | |||
| 6433 | =cut | ||
| 6434 | |||
| 6435 | 0 | ▶ | method incr (@args) { |
|
Subroutine
incr: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6436 | 0 | $self->execute_command(qw(INCR) => @args) | |
| 6437 | 16 | } | |
| 6438 | |||
| 6439 | =head2 incrby | ||
| 6440 | |||
| 6441 | Increment the integer value of a key by the given amount. | ||
| 6442 | |||
| 6443 | =over 4 | ||
| 6444 | |||
| 6445 | =item * key | ||
| 6446 | |||
| 6447 | =item * increment | ||
| 6448 | |||
| 6449 | =back | ||
| 6450 | |||
| 6451 | L<https://redis.io/commands/incrby> | ||
| 6452 | |||
| 6453 | =cut | ||
| 6454 | |||
| 6455 | 0 | ▶ | method incrby (@args) { |
|
Subroutine
incrby: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6456 | 0 | $self->execute_command(qw(INCRBY) => @args) | |
| 6457 | 16 | } | |
| 6458 | |||
| 6459 | =head2 incrbyfloat | ||
| 6460 | |||
| 6461 | Increment the float value of a key by the given amount. | ||
| 6462 | |||
| 6463 | =over 4 | ||
| 6464 | |||
| 6465 | =item * key | ||
| 6466 | |||
| 6467 | =item * increment | ||
| 6468 | |||
| 6469 | =back | ||
| 6470 | |||
| 6471 | L<https://redis.io/commands/incrbyfloat> | ||
| 6472 | |||
| 6473 | =cut | ||
| 6474 | |||
| 6475 | 0 | ▶ | method incrbyfloat (@args) { |
|
Subroutine
incrbyfloat: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6476 | 0 | $self->execute_command(qw(INCRBYFLOAT) => @args) | |
| 6477 | 16 | } | |
| 6478 | |||
| 6479 | =head2 lcs | ||
| 6480 | |||
| 6481 | Find longest common substring. | ||
| 6482 | |||
| 6483 | =over 4 | ||
| 6484 | |||
| 6485 | =item * key1 | ||
| 6486 | |||
| 6487 | =item * key2 | ||
| 6488 | |||
| 6489 | =item * [LEN] | ||
| 6490 | |||
| 6491 | =item * [IDX] | ||
| 6492 | |||
| 6493 | =item * [MINMATCHLEN len] | ||
| 6494 | |||
| 6495 | =item * [WITHMATCHLEN] | ||
| 6496 | |||
| 6497 | =back | ||
| 6498 | |||
| 6499 | L<https://redis.io/commands/lcs> | ||
| 6500 | |||
| 6501 | =cut | ||
| 6502 | |||
| 6503 | 0 | ▶ | method lcs (@args) { |
|
Subroutine
lcs: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6504 | 0 | $self->execute_command(qw(LCS) => @args) | |
| 6505 | 16 | } | |
| 6506 | |||
| 6507 | =head2 mget | ||
| 6508 | |||
| 6509 | Get the values of all the given keys. | ||
| 6510 | |||
| 6511 | =over 4 | ||
| 6512 | |||
| 6513 | =item * key [key ...] | ||
| 6514 | |||
| 6515 | =back | ||
| 6516 | |||
| 6517 | L<https://redis.io/commands/mget> | ||
| 6518 | |||
| 6519 | =cut | ||
| 6520 | |||
| 6521 | 0 | ▶ | method mget (@args) { |
|
Subroutine
mget: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6522 | 0 | $self->execute_command(qw(MGET) => @args) | |
| 6523 | 16 | } | |
| 6524 | |||
| 6525 | =head2 mset | ||
| 6526 | |||
| 6527 | Set multiple keys to multiple values. | ||
| 6528 | |||
| 6529 | =over 4 | ||
| 6530 | |||
| 6531 | =item * key value [key value ...] | ||
| 6532 | |||
| 6533 | =back | ||
| 6534 | |||
| 6535 | L<https://redis.io/commands/mset> | ||
| 6536 | |||
| 6537 | =cut | ||
| 6538 | |||
| 6539 | 0 | ▶ | method mset (@args) { |
|
Subroutine
mset: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6540 | 0 | $self->execute_command(qw(MSET) => @args) | |
| 6541 | 16 | } | |
| 6542 | |||
| 6543 | =head2 msetnx | ||
| 6544 | |||
| 6545 | Set multiple keys to multiple values, only if none of the keys exist. | ||
| 6546 | |||
| 6547 | =over 4 | ||
| 6548 | |||
| 6549 | =item * key value [key value ...] | ||
| 6550 | |||
| 6551 | =back | ||
| 6552 | |||
| 6553 | L<https://redis.io/commands/msetnx> | ||
| 6554 | |||
| 6555 | =cut | ||
| 6556 | |||
| 6557 | 0 | ▶ | method msetnx (@args) { |
|
Subroutine
msetnx: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6558 | 0 | $self->execute_command(qw(MSETNX) => @args) | |
| 6559 | 16 | } | |
| 6560 | |||
| 6561 | =head2 psetex | ||
| 6562 | |||
| 6563 | Set the value and expiration in milliseconds of a key. | ||
| 6564 | |||
| 6565 | =over 4 | ||
| 6566 | |||
| 6567 | =item * key | ||
| 6568 | |||
| 6569 | =item * milliseconds | ||
| 6570 | |||
| 6571 | =item * value | ||
| 6572 | |||
| 6573 | =back | ||
| 6574 | |||
| 6575 | L<https://redis.io/commands/psetex> | ||
| 6576 | |||
| 6577 | =cut | ||
| 6578 | |||
| 6579 | 0 | ▶ | method psetex (@args) { |
|
Subroutine
psetex: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6580 | 0 | $self->execute_command(qw(PSETEX) => @args) | |
| 6581 | 16 | } | |
| 6582 | |||
| 6583 | =head2 set | ||
| 6584 | |||
| 6585 | Set the string value of a key. | ||
| 6586 | |||
| 6587 | =over 4 | ||
| 6588 | |||
| 6589 | =item * key | ||
| 6590 | |||
| 6591 | =item * value | ||
| 6592 | |||
| 6593 | =item * [EX seconds|PX milliseconds|EXAT unix-time-seconds|PXAT unix-time-milliseconds|KEEPTTL] | ||
| 6594 | |||
| 6595 | =item * [NX|XX] | ||
| 6596 | |||
| 6597 | =item * [GET] | ||
| 6598 | |||
| 6599 | =back | ||
| 6600 | |||
| 6601 | L<https://redis.io/commands/set> | ||
| 6602 | |||
| 6603 | =cut | ||
| 6604 | |||
| 6605 | 0 | ▶ | method set (@args) { |
|
Subroutine
set: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6606 | 0 | $self->execute_command(qw(SET) => @args) | |
| 6607 | 16 | } | |
| 6608 | |||
| 6609 | =head2 setex | ||
| 6610 | |||
| 6611 | Set the value and expiration of a key. | ||
| 6612 | |||
| 6613 | =over 4 | ||
| 6614 | |||
| 6615 | =item * key | ||
| 6616 | |||
| 6617 | =item * seconds | ||
| 6618 | |||
| 6619 | =item * value | ||
| 6620 | |||
| 6621 | =back | ||
| 6622 | |||
| 6623 | L<https://redis.io/commands/setex> | ||
| 6624 | |||
| 6625 | =cut | ||
| 6626 | |||
| 6627 | 0 | ▶ | method setex (@args) { |
|
Subroutine
setex: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6628 | 0 | $self->execute_command(qw(SETEX) => @args) | |
| 6629 | 16 | } | |
| 6630 | |||
| 6631 | =head2 setnx | ||
| 6632 | |||
| 6633 | Set the value of a key, only if the key does not exist. | ||
| 6634 | |||
| 6635 | =over 4 | ||
| 6636 | |||
| 6637 | =item * key | ||
| 6638 | |||
| 6639 | =item * value | ||
| 6640 | |||
| 6641 | =back | ||
| 6642 | |||
| 6643 | L<https://redis.io/commands/setnx> | ||
| 6644 | |||
| 6645 | =cut | ||
| 6646 | |||
| 6647 | 0 | ▶ | method setnx (@args) { |
|
Subroutine
setnx: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6648 | 0 | $self->execute_command(qw(SETNX) => @args) | |
| 6649 | 16 | } | |
| 6650 | |||
| 6651 | =head2 setrange | ||
| 6652 | |||
| 6653 | Overwrite part of a string at key starting at the specified offset. | ||
| 6654 | |||
| 6655 | =over 4 | ||
| 6656 | |||
| 6657 | =item * key | ||
| 6658 | |||
| 6659 | =item * offset | ||
| 6660 | |||
| 6661 | =item * value | ||
| 6662 | |||
| 6663 | =back | ||
| 6664 | |||
| 6665 | L<https://redis.io/commands/setrange> | ||
| 6666 | |||
| 6667 | =cut | ||
| 6668 | |||
| 6669 | 0 | ▶ | method setrange (@args) { |
|
Subroutine
setrange: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6670 | 0 | $self->execute_command(qw(SETRANGE) => @args) | |
| 6671 | 16 | } | |
| 6672 | |||
| 6673 | =head2 strlen | ||
| 6674 | |||
| 6675 | Get the length of the value stored in a key. | ||
| 6676 | |||
| 6677 | =over 4 | ||
| 6678 | |||
| 6679 | =item * key | ||
| 6680 | |||
| 6681 | =back | ||
| 6682 | |||
| 6683 | L<https://redis.io/commands/strlen> | ||
| 6684 | |||
| 6685 | =cut | ||
| 6686 | |||
| 6687 | 0 | ▶ | method strlen (@args) { |
|
Subroutine
strlen: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6688 | 0 | $self->execute_command(qw(STRLEN) => @args) | |
| 6689 | 16 | } | |
| 6690 | |||
| 6691 | =head2 substr | ||
| 6692 | |||
| 6693 | Get a substring of the string stored at a key. | ||
| 6694 | |||
| 6695 | =over 4 | ||
| 6696 | |||
| 6697 | =item * key | ||
| 6698 | |||
| 6699 | =item * start | ||
| 6700 | |||
| 6701 | =item * end | ||
| 6702 | |||
| 6703 | =back | ||
| 6704 | |||
| 6705 | L<https://redis.io/commands/substr> | ||
| 6706 | |||
| 6707 | =cut | ||
| 6708 | |||
| 6709 | 0 | ▶ | method substr (@args) { |
|
Subroutine
substr: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6710 | 0 | $self->execute_command(qw(SUBSTR) => @args) | |
| 6711 | 16 | } | |
| 6712 | |||
| 6713 | =head1 METHODS - Transactions | ||
| 6714 | |||
| 6715 | =head2 discard | ||
| 6716 | |||
| 6717 | Discard all commands issued after MULTI. | ||
| 6718 | |||
| 6719 | L<https://redis.io/commands/discard> | ||
| 6720 | |||
| 6721 | =cut | ||
| 6722 | |||
| 6723 | 0 | ▶ | method discard (@args) { |
|
Subroutine
discard: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6724 | 0 | $self->execute_command(qw(DISCARD) => @args) | |
| 6725 | 16 | } | |
| 6726 | |||
| 6727 | =head2 exec | ||
| 6728 | |||
| 6729 | Execute all commands issued after MULTI. | ||
| 6730 | |||
| 6731 | L<https://redis.io/commands/exec> | ||
| 6732 | |||
| 6733 | =cut | ||
| 6734 | |||
| 6735 | 0 | ▶ | method exec (@args) { |
|
Subroutine
exec: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6736 | 0 | $self->execute_command(qw(EXEC) => @args) | |
| 6737 | 16 | } | |
| 6738 | |||
| 6739 | =head2 multi | ||
| 6740 | |||
| 6741 | Mark the start of a transaction block. | ||
| 6742 | |||
| 6743 | L<https://redis.io/commands/multi> | ||
| 6744 | |||
| 6745 | =cut | ||
| 6746 | |||
| 6747 | 0 | ▶ | method multi (@args) { |
|
Subroutine
multi: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6748 | 0 | $self->execute_command(qw(MULTI) => @args) | |
| 6749 | 16 | } | |
| 6750 | |||
| 6751 | =head2 unwatch | ||
| 6752 | |||
| 6753 | Forget about all watched keys. | ||
| 6754 | |||
| 6755 | L<https://redis.io/commands/unwatch> | ||
| 6756 | |||
| 6757 | =cut | ||
| 6758 | |||
| 6759 | 0 | ▶ | method unwatch (@args) { |
|
Subroutine
unwatch: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6760 | 0 | $self->execute_command(qw(UNWATCH) => @args) | |
| 6761 | 16 | } | |
| 6762 | |||
| 6763 | =head2 watch | ||
| 6764 | |||
| 6765 | Watch the given keys to determine execution of the MULTI/EXEC block. | ||
| 6766 | |||
| 6767 | =over 4 | ||
| 6768 | |||
| 6769 | =item * key [key ...] | ||
| 6770 | |||
| 6771 | =back | ||
| 6772 | |||
| 6773 | L<https://redis.io/commands/watch> | ||
| 6774 | |||
| 6775 | =cut | ||
| 6776 | |||
| 6777 | 0 | ▶ | method watch (@args) { |
|
Subroutine
watch: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6778 | 0 | $self->execute_command(qw(WATCH) => @args) | |
| 6779 | 16 | } | |
| 6780 | |||
| 6781 | |||
| 6782 | =head1 METHODS - Legacy | ||
| 6783 | |||
| 6784 | These take a subcommand as a parameter and construct the method name by | ||
| 6785 | combining the main command with subcommand - for example, C<< ->xgroup(CREATE => ...) >> | ||
| 6786 | would call C<< ->xgroup_create >>. | ||
| 6787 | |||
| 6788 | =cut | ||
| 6789 | |||
| 6790 | =head2 acl | ||
| 6791 | |||
| 6792 | =cut | ||
| 6793 | |||
| 6794 | 0 | ▶ | method acl ($cmd, @args) { |
|
Subroutine
acl: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6795 | 0 | $cmd =~ tr/ /_/; | |
| 6796 | 0 | my $method = "acl_" . lc($cmd); | |
| 6797 | 0 | return $self->$method(@args); | |
| 6798 | 16 | } | |
| 6799 | |||
| 6800 | =head2 client | ||
| 6801 | |||
| 6802 | =cut | ||
| 6803 | |||
| 6804 | 0 | ▶ | method client ($cmd, @args) { |
|
Subroutine
client: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6805 | 0 | $cmd =~ tr/ /_/; | |
| 6806 | 0 | my $method = "client_" . lc($cmd); | |
| 6807 | 0 | return $self->$method(@args); | |
| 6808 | 16 | } | |
| 6809 | |||
| 6810 | =head2 client_no | ||
| 6811 | |||
| 6812 | =cut | ||
| 6813 | |||
| 6814 | 0 | ▶ | method client_no ($cmd, @args) { |
|
Subroutine
client_no: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6815 | 0 | $cmd =~ tr/ /_/; | |
| 6816 | 0 | my $method = "client_no_" . lc($cmd); | |
| 6817 | 0 | return $self->$method(@args); | |
| 6818 | 16 | } | |
| 6819 | |||
| 6820 | =head2 cluster | ||
| 6821 | |||
| 6822 | =cut | ||
| 6823 | |||
| 6824 | 0 | ▶ | method cluster ($cmd, @args) { |
|
Subroutine
cluster: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6825 | 0 | $cmd =~ tr/ /_/; | |
| 6826 | 0 | my $method = "cluster_" . lc($cmd); | |
| 6827 | 0 | return $self->$method(@args); | |
| 6828 | 16 | } | |
| 6829 | |||
| 6830 | =head2 cluster_count | ||
| 6831 | |||
| 6832 | =cut | ||
| 6833 | |||
| 6834 | 0 | ▶ | method cluster_count ($cmd, @args) { |
|
Subroutine
cluster_count: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6835 | 0 | $cmd =~ tr/ /_/; | |
| 6836 | 0 | my $method = "cluster_count_" . lc($cmd); | |
| 6837 | 0 | return $self->$method(@args); | |
| 6838 | 16 | } | |
| 6839 | |||
| 6840 | =head2 cluster_count_failure | ||
| 6841 | |||
| 6842 | =cut | ||
| 6843 | |||
| 6844 | 0 | ▶ | method cluster_count_failure ($cmd, @args) { |
|
Subroutine
cluster_count_failure: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6845 | 0 | $cmd =~ tr/ /_/; | |
| 6846 | 0 | my $method = "cluster_count_failure_" . lc($cmd); | |
| 6847 | 0 | return $self->$method(@args); | |
| 6848 | 16 | } | |
| 6849 | |||
| 6850 | =head2 cluster_set | ||
| 6851 | |||
| 6852 | =cut | ||
| 6853 | |||
| 6854 | 0 | ▶ | method cluster_set ($cmd, @args) { |
|
Subroutine
cluster_set: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6855 | 0 | $cmd =~ tr/ /_/; | |
| 6856 | 0 | my $method = "cluster_set_" . lc($cmd); | |
| 6857 | 0 | return $self->$method(@args); | |
| 6858 | 16 | } | |
| 6859 | |||
| 6860 | =head2 cluster_set_config | ||
| 6861 | |||
| 6862 | =cut | ||
| 6863 | |||
| 6864 | 0 | ▶ | method cluster_set_config ($cmd, @args) { |
|
Subroutine
cluster_set_config: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6865 | 0 | $cmd =~ tr/ /_/; | |
| 6866 | 0 | my $method = "cluster_set_config_" . lc($cmd); | |
| 6867 | 0 | return $self->$method(@args); | |
| 6868 | 16 | } | |
| 6869 | |||
| 6870 | =head2 config | ||
| 6871 | |||
| 6872 | =cut | ||
| 6873 | |||
| 6874 | 0 | ▶ | method config ($cmd, @args) { |
|
Subroutine
config: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6875 | 0 | $cmd =~ tr/ /_/; | |
| 6876 | 0 | my $method = "config_" . lc($cmd); | |
| 6877 | 0 | return $self->$method(@args); | |
| 6878 | 16 | } | |
| 6879 | |||
| 6880 | =head2 function | ||
| 6881 | |||
| 6882 | =cut | ||
| 6883 | |||
| 6884 | 0 | ▶ | method function ($cmd, @args) { |
|
Subroutine
function: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6885 | 0 | $cmd =~ tr/ /_/; | |
| 6886 | 0 | my $method = "function_" . lc($cmd); | |
| 6887 | 0 | return $self->$method(@args); | |
| 6888 | 16 | } | |
| 6889 | |||
| 6890 | =head2 latency | ||
| 6891 | |||
| 6892 | =cut | ||
| 6893 | |||
| 6894 | 0 | ▶ | method latency ($cmd, @args) { |
|
Subroutine
latency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6895 | 0 | $cmd =~ tr/ /_/; | |
| 6896 | 0 | my $method = "latency_" . lc($cmd); | |
| 6897 | 0 | return $self->$method(@args); | |
| 6898 | 16 | } | |
| 6899 | |||
| 6900 | =head2 memory | ||
| 6901 | |||
| 6902 | =cut | ||
| 6903 | |||
| 6904 | 0 | ▶ | method memory ($cmd, @args) { |
|
Subroutine
memory: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6905 | 0 | $cmd =~ tr/ /_/; | |
| 6906 | 0 | my $method = "memory_" . lc($cmd); | |
| 6907 | 0 | return $self->$method(@args); | |
| 6908 | 16 | } | |
| 6909 | |||
| 6910 | =head2 memory_malloc | ||
| 6911 | |||
| 6912 | =cut | ||
| 6913 | |||
| 6914 | 0 | ▶ | method memory_malloc ($cmd, @args) { |
|
Subroutine
memory_malloc: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6915 | 0 | $cmd =~ tr/ /_/; | |
| 6916 | 0 | my $method = "memory_malloc_" . lc($cmd); | |
| 6917 | 0 | return $self->$method(@args); | |
| 6918 | 16 | } | |
| 6919 | |||
| 6920 | =head2 module | ||
| 6921 | |||
| 6922 | =cut | ||
| 6923 | |||
| 6924 | 0 | ▶ | method module ($cmd, @args) { |
|
Subroutine
module: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6925 | 0 | $cmd =~ tr/ /_/; | |
| 6926 | 0 | my $method = "module_" . lc($cmd); | |
| 6927 | 0 | return $self->$method(@args); | |
| 6928 | 16 | } | |
| 6929 | |||
| 6930 | =head2 object | ||
| 6931 | |||
| 6932 | =cut | ||
| 6933 | |||
| 6934 | 0 | ▶ | method object ($cmd, @args) { |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6935 | 0 | $cmd =~ tr/ /_/; | |
| 6936 | 0 | my $method = "object_" . lc($cmd); | |
| 6937 | 0 | return $self->$method(@args); | |
| 6938 | 16 | } | |
| 6939 | |||
| 6940 | =head2 pubsub | ||
| 6941 | |||
| 6942 | =cut | ||
| 6943 | |||
| 6944 | 0 | ▶ | method pubsub ($cmd, @args) { |
|
Subroutine
pubsub: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6945 | 0 | $cmd =~ tr/ /_/; | |
| 6946 | 0 | my $method = "pubsub_" . lc($cmd); | |
| 6947 | 0 | return $self->$method(@args); | |
| 6948 | 16 | } | |
| 6949 | |||
| 6950 | =head2 script | ||
| 6951 | |||
| 6952 | =cut | ||
| 6953 | |||
| 6954 | 0 | ▶ | method script ($cmd, @args) { |
|
Subroutine
script: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6955 | 0 | $cmd =~ tr/ /_/; | |
| 6956 | 0 | my $method = "script_" . lc($cmd); | |
| 6957 | 0 | return $self->$method(@args); | |
| 6958 | 16 | } | |
| 6959 | |||
| 6960 | =head2 slowlog | ||
| 6961 | |||
| 6962 | =cut | ||
| 6963 | |||
| 6964 | 0 | ▶ | method slowlog ($cmd, @args) { |
|
Subroutine
slowlog: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6965 | 0 | $cmd =~ tr/ /_/; | |
| 6966 | 0 | my $method = "slowlog_" . lc($cmd); | |
| 6967 | 0 | return $self->$method(@args); | |
| 6968 | 16 | } | |
| 6969 | |||
| 6970 | =head2 xgroup | ||
| 6971 | |||
| 6972 | =cut | ||
| 6973 | |||
| 6974 | 0 | ▶ | method xgroup ($cmd, @args) { |
|
Subroutine
xgroup: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6975 | 0 | $cmd =~ tr/ /_/; | |
| 6976 | 0 | my $method = "xgroup_" . lc($cmd); | |
| 6977 | 0 | return $self->$method(@args); | |
| 6978 | 16 | } | |
| 6979 | |||
| 6980 | =head2 xinfo | ||
| 6981 | |||
| 6982 | =cut | ||
| 6983 | |||
| 6984 | 0 | ▶ | method xinfo ($cmd, @args) { |
|
Subroutine
xinfo: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 6985 | 0 | $cmd =~ tr/ /_/; | |
| 6986 | 0 | my $method = "xinfo_" . lc($cmd); | |
| 6987 | 0 | return $self->$method(@args); | |
| 6988 | 16 | } | |
| 6989 | |||
| 6990 | 16 | 1; | |
| 6991 | |||
| 6992 | __END__ | ||