2017 © Pedro Peláez
 

library laravel-redis-store

Adds functionality to the built-in Cache's RedisStore.

image

ehann/laravel-redis-store

Adds functionality to the built-in Cache's RedisStore.

  • Friday, November 24, 2017
  • by ethanhann
  • Repository
  • 3 Watchers
  • 4 Stars
  • 3,416 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 21 % Grown

The README.md

Why is this useful?

The RedisStore that comes with the Laravel Cache does not compress string values out of the box. The RedisStore in this package does. Caching string values can save a ton of memory and/or network bandwidth depending on cached item size and request frequency., (*1)

How do I use it?

Install the package..., (*2)

composer require ehann/laravel-redis-store

Add a custom cache driver, like this..., (*3)

public function boot()
{
    Cache::extend('ehann-redis', function ($app) {
        return Cache::repository(new \Ehann\Cache\RedisStore(
            $app['redis'],
            $app['config']['cache.prefix'],
            $app['config']['cache.stores.redis.connection']
        ));
    });
}

Add the ehann-redis custom driver to the redis store config in config/cache.php..., (*4)

'stores' => [
    'redis' => [
        'driver' => 'ehann-redis',
    ],
],

The Versions

24/11 2017

dev-master

9999999-dev

Adds functionality to the built-in Cache's RedisStore.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ethan Hann

01/07 2017

0.2.1

0.2.1.0

Adds functionality to the built-in Cache's RedisStore.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ethan Hann

15/01 2017

0.2.0

0.2.0.0

Adds functionality to the built-in Cache's RedisStore.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ethan Hann

15/01 2017

0.1.0

0.1.0.0

Adds functionality to the built-in Cache's RedisStore.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ethan Hann