Download the PHP package webman-tech/laravel-cache without Composer

On this page you can find all versions of the php package webman-tech/laravel-cache. 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-cache

webman-tech/laravel-cache

Laravel illuminate/cache for webman

介绍

站在巨人(laravel)的肩膀上使缓存使用更加可靠便捷

所有方法和配置与 laravel 几乎一模一样,因此使用方式完全参考 Laravel文档 即可

同步支持 RateLimiter

安装

使用

所有 API 同 laravel,以下仅对有些特殊的操作做说明

Facade 入口

使用 WebmanTech\LaravelCache\Facades\Cache 代替 Illuminate\Support\Facades\Cache

使用 WebmanTech\LaravelCache\Facades\RateLimiter 代替 Illuminate\Support\Facades\RateLimiter

command 支持

extend 支持

config/plugin/webman-tech/laravel-cache/cache.php 中配置 extend

PSR6 和 PSR16 支持

Throttle Middleware 支持

该库实现了类似 Laravel Route 下的 throttle(Middleware\ThrottleRequests), 适用于 webman 路由,用于快速处理接口限流等

配置

config/plugin/webman-tech/laravel-cache/rate_limiter.php 下配置 for, 配置方式同 Laravel 的 RateLimiter::for

使用

使用注意事项

关于默认的缓存过期时间 Laravel Cache 没有缓存的默认过期时间 Cache::put 方法的第三个参数 ttl,不传时为永久缓存,为 0 或负数时表示移除该缓存(等同于 forget)
Cache::flush 清除的范围 会清空该存储器下的所有数据,而非指定的 prefix 下的,所以当缓存共享,通过 prefix 区分时,需要谨慎调用该方法 可以通过在 `config/plugin/webman-tech/laravel-cache/app.php` 下配置 `flush` 下的 `prevent` 为 `true` 来全局禁止使用 `flush` 方法 (注意:无法阻止通过实例直接获取到 Store 来 flush 的情况 `Cache::instance()->getStore()->flush()`),

All versions of laravel-cache with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
illuminate/cache Version >=8.0
illuminate/config Version >=8.0
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 webman-tech/laravel-cache contains the following files

Loading the files please wait ....