PHPackages                             alleyinteractive/wp-psr16 - 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. [Caching](/categories/caching)
4. /
5. alleyinteractive/wp-psr16

ActiveLibrary[Caching](/categories/caching)

alleyinteractive/wp-psr16
=========================

PSR-16 implementations for WordPress that cache data in the object cache, as transients, as options, and as object metadata.

v0.3.0(8mo ago)211.4k↓30%1GPL-2.0-or-laterPHPPHP ^8.2

Since Dec 26Pushed 8mo ago17 watchersCompare

[ Source](https://github.com/alleyinteractive/wp-psr16)[ Packagist](https://packagist.org/packages/alleyinteractive/wp-psr16)[ Docs](https://github.com/alleyinteractive/wp-psr16)[ RSS](/packages/alleyinteractive-wp-psr16/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (5)Used By (1)

PSR-16 Implementations for WordPress
====================================

[](#psr-16-implementations-for-wordpress)

This library provides [PSR-16](https://www.php-fig.org/psr/psr-16/) implementations for WordPress projects. It includes adapters for caching data in the object cache, as transients, as options, and as post, term, or other object metadata.

Installation
------------

[](#installation)

Install the latest version with:

```
composer require alleyinteractive/wp-psr16
```

Basic usage
-----------

[](#basic-usage)

All the adapters in this library implement the `\Psr\SimpleCache\CacheInterface` interface and have no other public API apart from their static constructors.

```
