knot-lib/cache

View on GitHub
src/CacheInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
declare(strict_types=1);

namespace knotlib\cache;

use Psr\SimpleCache\CacheInterface as SimpleCache_CacheInterface;

interface CacheInterface extends SimpleCache_CacheInterface
{
    /**
     * Rewrite cache expiration time
     *
     * @param string $key         The key of the item to remove. Shell wildcards are accepted.
     * @param int $duration       specify expiration span which the cache will be removed.
     */
    public function touch( $key, $duration = NULL );


}