flipboxfactory/craft-psr16

Craft CMS 的 PSR-16 简单缓存

2.0.0 2023-01-20 19:58 UTC

This package is auto-updated.

Last update: 2024-09-21 20:43:44 UTC


README

Join the chat at https://gitter.im/flipboxfactory/craft-psr16 Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

此包通过 Craft CMS 提供了 PSR-16 简单缓存机制。

安装

要安装,请使用 composer

composer require flipboxfactory/craft-psr16

测试

$ ./vendor/bin/phpunit

用法

将其定义为插件中的组件

'components' => [
    'psr16cache' => [
        'class' => flipbox\craft\psr16\SimpleAdapterCache::class
     ]
]

或通过 composer 作为一个 'extra' 定义

"components": {
  "psr16cache": "flipbox\\craft\\psr16\\SimpleAdapterCache"
}

贡献

有关详细信息,请参阅 CONTRIBUTING

鸣谢

许可证

MIT 许可证 (MIT)。请参阅 许可证文件 了解更多信息。