jordanbardsley7/laracache

Laravel caching artisan commands.

This package's canonical repository appears to be gone and the package has been frozen as a result.

v0.0.8 2016-09-02 13:18 UTC

This package is not auto-updated.

Last update: 2020-01-28 21:19:18 UTC


README

TravisCI StyleCI

This repository didnt quite make it into the Laravel source code so I thought I would create a seperate service provider for anyone who wanted to use the artisan console commands.

Register The Service Provider

Before you can actually use the console command you need to register the service provider in the Laravel application configuration file.

\LaraCache\LaraCacheServiceProvider::class,

Display A Cache Store

The following command can be used to display the total cache for a given store. You currently can only pass "memcached" or "redis" but I will work on adding all the other cache drivers.

php artisan cache:show memcached

Querying A Cache

Sometimes you may want to query your default caching instance. Todo so, all you need todo is run the below command and the query will be matched against all cache keys.

php artisan cache:find name

Examples

LaravelCache Memcached LaravelCache Redis