D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
modules
/
advisor
/
vendor
/
tedivm
/
stash
/
src
/
Stash
/
Driver
/
Filename :
BlackHole.php
back
Copy
<?php /* * This file is part of the Stash package. * * (c) Robert Hafner <tedivm@tedivm.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PleskAdvisor\Stash\Driver; /** * This class provides a NULL caching driver, it always takes values, but never saves them * Can be used as an default save driver * * @author Benjamin Zikarsky <benjamin.zikarsky@perbility.de> */ class BlackHole extends AbstractDriver { /** * {@inheritdoc} */ public function clear($key = null) { return \true; } /** * {@inheritdoc} */ public function getData($key) { return \false; } /** * {@inheritdoc} */ public function purge() { return \true; } /** * {@inheritdoc} */ public function storeData($key, $data, $expiration) { return \true; } }