承接 momentohq/laravel-cache 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

momentohq/laravel-cache

最新稳定版本:v1.1.4

Composer 安装命令:

composer require momentohq/laravel-cache

包简介

Taggable Momento cache driver for Laravel.

README 文档

README

logo

project status project stability

Getting Started 🏃

Requirements

IDE Notes: You'll most likely want to use an IDE that supports PHP development, such as PhpStorm or Microsoft Visual Studio Code.

Examples

Check out full working code in the example app!

Installation

Add our SDK as a dependency to your Laravel installation's composer.json file:

{
  "require": {
    "momentohq/laravel-cache": "1.1.4"
  }
}

Run composer update to install the necessary prerequisites.

Then, add MomentoServiceProvider to your config/app.php:

'providers' => [
    // ...
    Momento\Cache\MomentoServiceProvider::class
];

And add:

  • MOMENTO_API_KEY=<YOUR_API_KEY>
  • MOMENTO_CACHE_NAME=<CACHE_CREATED_ABOVE>

into your .env file

Finally, add the required config to your config/cache.php:

'default' => env('CACHE_DRIVER', 'momento'),

'stores' => [
        'momento' => [
            'driver' => 'momento',
            'cache_name' => env('MOMENTO_CACHE_NAME'),
            'default_ttl' => 60,
        ],
],

Run composer update to install the necessary prerequisites.

Usage

Check out full working code in the example app!

Tuning

Coming soon!

Tag Support

Cache tags work the same way as explained in the Laravel documentation.

Notes: If a tag may contain more than 4MB worth of keys, tagging may not work as intended. Please contact us at support@momentohq.com or on our Discord if you need support for a larger tag set.

Unsupported Cache Operations

The following cache operations are not supported today. If you need these operations, please reach out to us, and we can prioritize the work to complete them. You can file a GitHub issue, e-mail us at support@momentohq.com, or join our Discord.

  • forever

For more info, visit our website at https://gomomento.com!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2023-03-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固