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 11, 2024 via composer

doctrine/cache 2.2.0

PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.
Package summary
Share
0
issues
1
license
1
MIT
Package created
10 Jan 2013
Version published
20 May 2022
Maintainers
1
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:
doctrine/cache@2.2.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 doctrine/cache 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does doctrine/cache do?

Doctrine/Cache is a component extracted from the Doctrine Common project. It is designed to offer a cache implementation layer for PHP projects. While it supports a multitude of different drivers such as Redis, Memcache, APC, MongoDB, and others, it's important to note that the library is deprecated and the Doctrine Project no longer provides bug fixes for it. It is recommended by the Doctrine Project to use a different cache library, preferably PSR-6 or PSR-16.

How do you use doctrine/cache?

The Doctrine/Cache library is used within your PHP projects to handle caching data. Though deprecated, you can still use it by adding it to your composer.json file and running composer update. Here's a typical code usage in PHP:

use Doctrine\Common\Cache\FilesystemCache;

$cache = new FilesystemCache('/path/to/dir');
$cache->save('my_data', 'Hello World!');
echo $cache->fetch('my_data'); // outputs: Hello World!

In this example, we initialize a Filesystem Cache and store some data (โ€˜Hello World!โ€™) identified by 'my_data'. We then fetch and output the data using the same identifier.

Again, with the library deprecated, you are strongly advised to use a PSR-6 or PSR-16 compliant library for new projects.

Where are the doctrine/cache docs?

For the Doctrine/Cache library, the documentation can be found on the Doctrine Project's website via the following URL: https://www.doctrine-project.org/projects/doctrine-cache/en/current/index.html. Despite this, bear in mind that this library is deprecated and the Doctrine project encourages the use of a different caching library, with PSR-6 or PSR-16 being the preferred options.