Download the PHP package lysice/laravel-smartcache without Composer

On this page you can find all versions of the php package lysice/laravel-smartcache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-smartcache

Laravel-smartcache 一款基于yac/apcu的laravel二级缓存扩展包

Latest Stable Version Total Downloads Latest Unstable Version License

二级缓存器,基于APCu/Yac。

如果本扩展帮助到了你 欢迎star。git

如果本扩展有任何问题或有其他想法 欢迎提 issue与pull request。

Yac官方文档

APCu官方文档

安装

将服务提供者添加入app.php

配置

使用

CacheManager的方法定义如下

如果您习惯使用Facade模式 首先加入Facade

然后使用:

或者您也可以直接按照如下使用

需要注意的是 首次返回的数据为您自己定义的 $callback中的数据。如果您返回的是数组 则缓存时会将数据 json_encode后存储。 当您第二次访问,取到的数据为缓存数据,此时您应该将数据反序列化为数组。 另外,在laravel中大量使用了 collection,由于collection数据量太大,因此在开发中并未考虑callback返回collection的情况。建议使用者直接返回数组。

单独使用

如果您觉得本扩展的remember方法不好用可以基于本扩展提供的类直接操作。 以下本扩展提供的类

如果本扩展帮助到了你 欢迎star。

如果本扩展有任何问题或有其他想法 欢迎提 issue与pull request。


All versions of laravel-smartcache with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/console Version >=5.8
illuminate/support Version >=5.8
illuminate/routing Version >=5.8
illuminate/filesystem Version >=5.8
appstract/lush-http Version ^0.5.5
ext-zlib Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lysice/laravel-smartcache contains the following files

Loading the files please wait ....