https://github.com/iqbalhasandev/laravel-sqlite-cache
The Missing Sqlite Cache Driver Package.You can easily use Sqlite Database as Cache Driver through this package
https://github.com/iqbalhasandev/laravel-sqlite-cache
cache-diver-integration cache-diver-sqlite cache-driver composer-dependency iqbalhasandev laravel-cache laravel-package laravel-sqlite-cache learn php-package sqlite student-vscode
Last synced: 4 months ago
JSON representation
The Missing Sqlite Cache Driver Package.You can easily use Sqlite Database as Cache Driver through this package
- Host: GitHub
- URL: https://github.com/iqbalhasandev/laravel-sqlite-cache
- Owner: iqbalhasandev
- License: mit
- Created: 2020-11-28T03:11:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T04:45:50.000Z (over 3 years ago)
- Last Synced: 2025-08-31T07:13:54.841Z (5 months ago)
- Topics: cache-diver-integration, cache-diver-sqlite, cache-driver, composer-dependency, iqbalhasandev, laravel-cache, laravel-package, laravel-sqlite-cache, learn, php-package, sqlite, student-vscode
- Language: PHP
- Homepage: https://iqbalhasandev.github.io/laravel-sqlite-cache/
- Size: 9.77 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Sqlite Cache - The Missing Sqlite Cache Driver Package
Made with ❤️ by [Iqbal Hasan](https://www.facebook.com/iqbalhasan.dev/)
- **Laravel**: 5.6/5.7/5.8/6.0/7.0/8.0
- **Author**: IQBAL HASAN
- **Website & Documentation:**: https://iqbalhasandev.github.io/laravel-sqlite-cache/
Integrate Cache Driver into your project easily with laravel-sqlite-cache package.
## Installation Steps
### 1. Require the Package
After creating your new Laravel application you can include the Sqlite Cache Driver Package with the following command:
```bash
composer require iqbalhasandev/sqlite-cache
```
### 2. If you're using Laravel 5.5, this is all there is to do.
Should you still be on version 5.4 of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.
Add a new line to the `providers` array:
Iqbal\SqliteCache\SqliteCacheProvider::class
### 3. Then run the command in the terminal "php artisan sqlite-cache:install; php artisan sqlite-cache:table;"
```bash
// * To install & publish all config files of sqlite-cache package
php artisan sqlite-cache:install
//Then Run
// * To Create Cache Table
php artisan sqlite-cache:table
```
### 4. Change the Cache Driver " open .env file then change CACHE_DRIVER=sqlite"
```env
CACHE_DRIVER=sqlite
```
## Overview
Look at one of the following topics to learn more about laravel-bulksmsbd
- [Usage](#usage)
- [Configuration](#configuration)
## Usage
Below is an example of Cache Data
```php
//Route web.php
use Illuminate\Support\Facades\Cache;
Route::get('/laravel-sqlite-cache', function () {
Cache::put('testing', 'laravel sqlite cache is Awesome');
return Cache::get('testing');
});
```
To know more about the use of laravel cache, visit laravel Official Webpage
### Configuration
You can change Cache Database Name to change name follow these step:
## Add `CACHE_DATABASE` to **.env** file.
```bash
// optional Defalt Cache Database Name 'cache.sqlite'
CACHE_DATABASE={databasename} //E.g. 'cache.sqlite'
```
## Then run the command in the terminal "php artisan sqlite-cache:install; php artisan sqlite-cache:table;"
```bash
// * To install & publish all config files of sqlite-cache package
php artisan sqlite-cache:install
//Then Run
// * To Create Cache Table
php artisan sqlite-cache:table
```
## Credits
- IQBAL HASAN (the author of sqlite-cach package)
- [Contributors](https://github.com/iqbalhasandev/laravel-sqlite-cache/graphs/contributors)
## Support
Hey dude! Don't forget to mail me if you have any problem with the package.
- **Author E-mail**: iqbalhasan.dev@gmail.com
- **Author Facebook**: https://www.facebook.com/iqbalhasan.dev/
- **Author linkedin**: https://www.linkedin.com/in/iqbalhasandev
- **Author github**: https://github.com/iqbalhasandev
- **Author twitter**: https://twitter.com/iqbalhasandev
## License
This package inherits the licensing of its parent framework, Laravel, and as such is open-sourced
software licensed under the [MIT license](http://opensource.org/licenses/MIT)
## Extra
If you want to contribute, you can
Thank you for using this package😘
If you like it, don't forget to give a star⭐⭐⭐⭐⭐