oat-sa/lib-health-check-cache 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

oat-sa/lib-health-check-cache

最新稳定版本:1.1.0

Composer 安装命令:

composer require oat-sa/lib-health-check-cache

包简介

OAT Cache Health Check Library

README 文档

README

Latest Version License GPL2 Build Status Coverage Status Packagist Downloads

PSR-6 cache health checker for the Health checks PHP library

Table of contents

Installation

$ composer require oat-sa/lib-health-check-cache

Usage

This library provides a CacheChecker checker in charge to check if the provided cache pool is reachable.

<?php

declare(strict_types=1);

use OAT\Library\HealthCheck\HealthChecker;
use OAT\Library\HealthCheckCache\CacheChecker;
use Psr\Cache\CacheItemPoolInterface;

$healthChecker = new HealthChecker();

/** @var CacheItemPoolInterface $cache */
$cacheChecker = new CacheChecker($cache);

$results = $healthChecker
    ->registerChecker($cacheChecker)
    ->performChecks();

Note: The built-in UuidCacheKeyGenerator can accept a custom prefix. If not provided, a default prefix will be used.

Note: If you need a custom logic to generate the cache key, create your own key generator by implementing CacheKeyGeneratorInterface Make sure your generated key is unique enough.

Tests

To run tests:

$ vendor/bin/phpunit

Note: see phpunit.xml.dist for available test suites.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 38
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2021-03-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固