定制 motomedialab/laravel-redis-driver 二次开发

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

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

motomedialab/laravel-redis-driver

最新稳定版本:v2.0.1

Composer 安装命令:

composer require motomedialab/laravel-redis-driver

包简介

A Laravel Redis driver override that enforces clearing of cache using prefixes, rather than a flush

README 文档

README

A simple package that overrides the default behavior when flushing the Laravel Redis cache store.

Why?

The default behaviour of Laravel's Redis driver when calling cache()->clear() while using the Redis cache driver is to call a flushdb command for the entire Redis database. This is not always desirable, especially when using a multi tenancy Redis instance.

This package overrides that behaviour by clearing only the keys that match the cache prefix, stopping a global flushdb command from being called.

Installation

Simply pull the package in using composer, as below and you're good to go!

composer require motomedialab/laravel-redis-driver

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-15