PHPackages                             claudiu-cristea/drupal-cache-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. claudiu-cristea/drupal-cache-adapter

ActiveLibrary

claudiu-cristea/drupal-cache-adapter
====================================

Drupal cache adapter

1.0.0-alpha1(2y ago)08.8k↓47.1%GPL-2.0-or-laterPHP

Since Aug 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/claudiu-cristea/drupal-cache-adapter)[ Packagist](https://packagist.org/packages/claudiu-cristea/drupal-cache-adapter)[ RSS](/packages/claudiu-cristea-drupal-cache-adapter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

[![ci](https://github.com/claudiu-cristea/drupal-cache-adapter/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/claudiu-cristea/drupal-cache-adapter/actions/workflows/ci.yml)

Drupal Cache Adapter
--------------------

[](#drupal-cache-adapter)

Provides a Symfony Cache adapter to Drupal cache system.

It's useful when a third-party library requires a `php-cache` style adapter to cache data but you want to pipe the cachig process through the Drupal cache API.

A good example is , a library that is querying the GitHub API. Calls to GitHub might be cached but the library requires a `php-cache` adapter. You can use the `DrupalAdapter` provided by this package, to route the cache write/read via Drupal caching API. See .

Install
-------

[](#install)

Use composer:

```
composer require claudiu-cristea/drupal-cache-adapter
```

Usage
-----

[](#usage)

```
