PHPackages                             silvanus/svangr - 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. silvanus/svangr

AbandonedArchivedLibrary[Caching](/categories/caching)

silvanus/svangr
===============

Programmatic cache strategies for WP

v1.0(5y ago)18.4kMITPHP

Since Aug 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/stscoundrel/svangr)[ Packagist](https://packagist.org/packages/silvanus/svangr)[ RSS](/packages/silvanus-svangr/feed)WikiDiscussions master Synced 1w ago

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

Svangr
======

[](#svangr)

Programmatic cache for WP. Implements [PSR16 cache interface](https://www.php-fig.org/psr/psr-16/).

Install
-------

[](#install)

Via Composer:

`composer require silvanus/svangr`

To use autoloading mechanism, you must include `vendor/autoload.php` file in your code.

Usage.
------

[](#usage)

Currently has one strategy: transients.

### Transient

[](#transient)

Working with transients in WP can be a bit awkward and lead to lot of boilerplate code. Svangr offers simple api to work with transients.

#### Set / Get / Delete

[](#set--get--delete)

```
