定制 iqbalhasandev/sqlite-cache 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iqbalhasandev/sqlite-cache

Composer 安装命令:

composer require iqbalhasandev/sqlite-cache

包简介

The Missing Sqlite Cache Driver Package.You can easily use Sqlite Database as Cache Driver through this package

README 文档

README

Made with ❤️ by Iqbal Hasan

issues forks stars Latest Stable Version Total Downloads Latest Unstable Version license

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:

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;"

// * 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"

CACHE_DRIVER=sqlite

Overview

Look at one of the following topics to learn more about laravel-bulksmsbd

Usage

Below is an example of Cache Data

//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.

// 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;"

// * 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

Support

Hey dude! Don't forget to mail me if you have any problem with the package.

License

This package inherits the licensing of its parent framework, Laravel, and as such is open-sourced software licensed under the MIT license

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⭐⭐⭐⭐⭐

iqbalhasandev/sqlite-cache 适用场景与选型建议

iqbalhasandev/sqlite-cache 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 787 次下载、GitHub Stars 达 16, 最近一次更新时间为 2020 年 11 月 28 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「package」 「plugin」 「library」 「cache driver」 「Sqlite Cache Driver」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 iqbalhasandev/sqlite-cache 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 iqbalhasandev/sqlite-cache 我们能提供哪些服务?
定制开发 / 二次开发

基于 iqbalhasandev/sqlite-cache 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 787
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 19
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-28