Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 30, 2024 via composer

psr/cache 3.0.0

Common interface for caching libraries
Package summary
Share
0
issues
1
license
1
MIT
Package created
11 Dec 2015
Version published
3 Feb 2021
Maintainers
3
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
psr/cache@3.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of psr/cache 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does psr/cache do?

The PSR/Cache package provides a common interface for caching libraries in PHP. It's part of the PSR-6 Caching Interface which sets out standards for creating caching mechanisms in PHP. Notably, PSR/Cache does not contain its own caching implementation, but simply outlines the required structures to develop them.

How do you use psr/cache?

PSR/Cache is typically employed through composer, the PHP package manager. To start using it, you first have to include it in your project with composer:

composer require psr/cache

After that, the PSR/Cache interfaces can be implemented inside your PHP code to build out your caching mechanisms according to PSR-6 standards.

Here's an example:

class MyCacheItem implements \Psr\Cache\CacheItemInterface {
    // Implement all the required methods here according to PSR-6
}

class MyCachePool implements \Psr\Cache\CacheItemPoolInterface {
    // Implement all the required methods here according to PSR-6
}

Please note that this package provides interfaces only, it's up to you as a developer to implement them in a way appropriate for your caching needs.

Where are the psr/cache docs?

The PSR/Cache documentation resides in the PSR-6 document available at the PHP-FIG website: https://www.php-fig.org/psr/psr-6/. This document details the functionalities and obligations for each interface in the package.