定制 highwire/drupal-psr-16 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

highwire/drupal-psr-16

最新稳定版本:2.0.0

Composer 安装命令:

composer require highwire/drupal-psr-16

包简介

Convert Drupal 8 Cache objects to PSR-16 compliant cache objects

README 文档

README

Convert Drupal 8 Cache objects to PSR-16 compliant cache objects

Build Status Code Coverage

Installation

composer require highwire\drupal-psr-16

Using PHP

<?php $drupalcache = \Drupal::cache('mybin'); $psr16cache = new \HighWire\DrupalPSR16\Cache($drupalcache); // Now do something with the PSR-16 compliant cache

Using Drupal services

services: cache.mybin: # Custom cache bin called 'mybin' class: Drupal\Core\Cache\CacheBackendInterface tags: - { name: cache.bin } factory: cache_factory:get arguments: [mybin] psr16.mybin: # PSR 16 service that returns a bin as a PSR-16 compliant object class: HighWire\DrupalPSR16\Cache arguments: ['@cache.mybin'] psr16.default: # PSR 16 service that returns the default bin as a PSR-16 compliant object class: HighWire\DrupalPSR16\Cache arguments: ['@cache.default'] 3rdparty.library: # 3rd Party Library that takes a PSR-16 compliant cache controller class: Some\Third\Party\Library arguments: ['@some.other.service'] calls: - [setCache, ['@psr16.mybin']]

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 12
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPLv3
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固