定制 morilog/infinity-cache 二次开发

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

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

morilog/infinity-cache

最新稳定版本:v1.0.1

Composer 安装命令:

composer require morilog/infinity-cache

包简介

Infinity cache for Laravel Eloquent models and queries

README 文档

README

A Laravel package for Eloquent cache. InfinityCache provides infinity and forever cache for queries results until the model changes. If a model has been created, deleted or updated, model queries caches will be flushed.

Requirements

This package works only with taggable cache storages and drivers such as memcached or Redis and other storages that extended from Illuminate\Cache\TaggedCache.

Installation

To install this package run this composer command:

composer require morilog/infinity-cache

Add the ServiceProvider to your config/app.php providers array:

    'providers' => [
        ...
        Morilog\InfinityCache\InfinityCacheServiceProvider::class,
        ...
    ]

Then publish the config file:

php artisan vendor:publish --provider="Morilog\InfinityCache\InfinityCacheServiceProvider" --tag="config"

Usage

For using InfinityCache, your eloquent model must extend Morilog\InfinityCache\Model

example:

<?php
namespace App\Models;

use Morilog\InfinityCache\Model as InfinityCacheModel;

class Post extends InfinityCacheModel
{
  ...
}

统计信息

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

GitHub 信息

  • Stars: 31
  • Watchers: 4
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固