Download the PHP package phpmicroservice/cache_manage without Composer

On this page you can find all versions of the php package phpmicroservice/cache_manage. 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 cache_manage

cache_manage 缓存管理器

特色

  1. 专注与缓存管理(将缓存管理与逻辑分离)
  2. 缓存标签
  3. 标签关联(自动更新关联标签)

使用案例

简单版本

带有标签的

使用说明

  1. 缓存驱动
    • 继承\CacheManage\AbstractDriver
    • 实现所需要实现的方法,其中getInstance方法是静态的、公开的
  2. 缓存管理类

    • 要继承\CacheManage\AbstractCache
    • 要设置dirver属性,protected string $dirver = Symfony::class;,这是设置改缓存管理器的缓存驱动
    • 默认标签储存的驱动为Predis,可修改为其他,示例:test/Cache/One/AbstractCache.php,需确保所有的缓存管理器类公用一个标签储存驱动,不公用一个标签储存驱动的话就不能自动更新关联缓存
    • 自我标签。array $selfTags属性储存自我标签,就是当前缓存的标签,当别的缓存关联了这个标签是,当前缓存更新则关联更新其他缓存,一个缓存可以有多个自我标签
    • 关联标签。array $relatedTags属性储存了关联标签,当这些标签的缓存有更新时,当前缓存会被关联更新
    • 标签可以是任意可序列化(serialize)的变量
    • 缓存获取的参数。array $param_arr属性储存了缓存获取参数,在实例化缓存管理、获取数据是可传入参数,例:

    • 缓存过去时间。int $ttl属性储存了缓存的过期时间,是指在多少秒后过期。可直接定义缓存获取可时间protected $ttl = 60;,也可在实例化管理管理类、获取数据的时候传入过期时间,例:

    • 缓存获取方法,handle方法为缓存的获取方法,可在此方法内根据参数获取待缓存数据,数据直接返回即可。例:
  3. 使用缓存管理器
    • 定义驱动
    • 定义缓存管理类
    • 实例化缓存管理类,获取数据

All versions of cache_manage with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 phpmicroservice/cache_manage contains the following files

Loading the files please wait ....