New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

104lab/laravel-redis

The helper for Laravel Redis package
1,761
Install
composer require 104lab/laravel-redis
Latest Version:v1.0.1
PHP:^8.1
Laravel:10 · 11 · 12
License:MIT
Last Updated:Aug 28, 2025
Links: GitHub  ·  Packagist
Maintainer: MilesChou

Helper for Laravel Redis

tests

Requirement

  • PHP 8.1 ~ 8.4
  • Laravel 10 ~ 12
  • ext-redis 5.3 ~ 6.2 (Test covered)
  • Redis 6 ~ 7 (Test covered)
  • Predis ^2.0.3

Installation

Use Composer for install.

composer require 104lab/laravel-redis

Usage

Redis KEYS method is like full-table scan, so maybe use SCAN is good idea.

$connection = Redis::connection();

# Before
$keys = $connection->keys('foo:*');

# After
$keys = (new KeysByScan($connection))('foo:*');

# Use chunk limit
$keys = (new KeysByScan($connection))('foo:*', 100);

# Use usleep, default is 10
$keys = (new KeysByScan($connection))('foo:*', 100, 10);

License

The MIT License (MIT). Please see License File for more information.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released PHP Laravel License
v1.0.1 ^8.1 ^10 | ^11 | ^12 MIT
v1.0.0 ^8.1 ^10 | ^11 | ^12 MIT