定制 firevel/firestore-cache-driver 二次开发

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

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

firevel/firestore-cache-driver

Composer 安装命令:

composer require firevel/firestore-cache-driver

包简介

Firestore cache driver for Laravel app running inside Google App Engine.

README 文档

README

Cache driver for Laravel/Firevel applications running inside App Engine standard environment.

Installation

composer require firevel/firestore-cache-driver

Add firestore driver to config/cache.php

    'stores' => [
    	...
        'firestore' => [
            'driver' => 'firestore',
            'collection' => 'cache', // Firestore collection name.
        ],
        ...
   ];

Set CACHE_DRIVER=firestore in your .env.

Important Notice

Driver was developed basing on Laravel 5.8+ where TTL is counted in seconds not minutes.

Limitations

  • Up-to-date limitation https://cloud.google.com/firestore/quotas.
  • Maximum size for a document is 1MB, so keep your cache values small.
  • Maximum write rate to a document is 1 per second (looks like its higher in practice). It might affect functionalities based on fast value increase (for example api throttling).
  • Firestore can delete one document per call, so operations like flush() taking some time.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固