DOKK / manpages / debian 12 / libredis-perl / Redis::List.3pm.en
Redis::List(3pm) User Contributed Perl Documentation Redis::List(3pm)

Redis::List - tie Perl arrays to Redis lists

version 2.000

    tie @my_list, 'Redis::List', 'list_name', @Redis_new_parameters;
    $value = $my_list[$index];
    $my_list[$index] = $value;
    $count = @my_list;
    push @my_list, 'values';
    $value = pop @my_list;
    unshift @my_list, 'values';
    $value = shift @my_list;
    ## NOTE: fourth parameter of splice is *NOT* supported for now
    @other_list = splice(@my_list, 2, 3);
    @my_list = ();

  • Pedro Melo <melo@cpan.org>
  • Damien Krotkine <dams@cpan.org>

This software is Copyright (c) 2015 by Pedro Melo, Damien Krotkine.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
2023-01-14 perl v5.36.0