faveo-helpdesk/laravel-cache 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

faveo-helpdesk/laravel-cache

最新稳定版本:v0.1.0

Composer 安装命令:

composer require faveo-helpdesk/laravel-cache

包简介

Configure multiple Laravel cache drivers without accessing the server. It will update the config accordingly

README 文档

README

Faveo_Logo

Handle multiple cache drivers

Installation and Usage Instructions

What It Does

This package allows you to choose cache driver from application without contacting server or any other files.

Installation

composer require faveo-helpdesk/laravel-cache

Publish the package

php artisan vendor:pubish --force --tag=advance-cache

Usage Instructions

How to update a cache driver ?

use CacheDriver\HandleCacheController;

$cache = new HandleCacheController();

// Store file driver
$cache->modify(['DEFAULT' => 'file']);

// Store database driver
$cache->modify(['DEFAULT' => 'database']);

// Store array driver
$cache->modify(['DEFAULT' => 'array']);

// Store redis driver
$cache->modify(['DEFAULT' => 'redis', 'CONNECTION_REDIS' => 'default']);

// Store memcached driver
$cache->modify(['DEFAULT' => 'memcached', 'MEMCACHED_HOST' => '', 'MEMCACHED_PORT' => '', 'MEMCACHED_PERSISTENT_ID' => '', 'MEMCACHED_USERNAME' => '', 'MEMCACHED_PASSWORD' => '']);

// Store dynamodb driver
$cache->modify(['DEFAULT' => 'dynamodb', 'AWS_ACCESS_KEY_ID' => '', 'AWS_SECRET_ACCESS_KEY' => '', 'AWS_DEFAULT_REGION' => '', 'DYNAMODB_CACHE_TABLE' => '', 'DYNAMODB_ENDPOINT' => '']);

How to get a speific Constant Value with Default value ?

use CacheDriver\HandleCacheController;

$cache = new HandleCacheController();

// Gets a default driver. If constant was not there, 'database' value will be picked. Not only DEFAULT constant but also serach all kind of cache Constant value
$cache::value('DEFAULT', 'database');

How to get a all values from speific driver ?

use CacheDriver\HandleCacheController;

$cache = new HandleCacheController();

// Passes a driver like file, database, array, redis, memcached and dynamodb
$cache::all('file');

License

The MIT License (MIT).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固