PHPackages                             haydarsahin/cache-migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. haydarsahin/cache-migration

ActiveLibrary[Database &amp; ORM](/categories/database)

haydarsahin/cache-migration
===========================

The package helpful about migrate redis cache for seamless deploys

v1.0.1(2y ago)77MITPHPPHP &gt;=7.1

Since Jul 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/haydar/cache-migration)[ Packagist](https://packagist.org/packages/haydarsahin/cache-migration)[ RSS](/packages/haydarsahin-cache-migration/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Laravel Cache Migration
=======================

[](#laravel-cache-migration)

The package is developed for make seamless deploys. You can delete your cache by adding the desired redis keys to the migration file.

Requirement
-----------

[](#requirement)

- **Laravel** &gt;= 5.x
- **PHP** &gt;= 7.1

Installation
------------

[](#installation)

Install via composer

```
composer require haydarsahin/cache-migration
```

Run migration for creating `cache-migrations` table.

```
php artisan migrate
```

Usage
-----

[](#usage)

The cache migrations is analogous with normal migration.

Create a migration file.

```
php artisan make:cache-migration UsersCacheForget
```

Type pattern or patterns which you want to forget to patterns array.

```
