Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (34 sloc) 734 Bytes
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Nette\Caching;
/**
* Cache storage.
*/
interface IStorage
{
/**
* Read from cache.
* @return mixed
*/
function read(string $key);
/**
* Prevents item reading and writing. Lock is released by write() or remove().
*/
function lock(string $key): void;
/**
* Writes item into the cache.
*/
function write(string $key, $data, array $dependencies): void;
/**
* Removes item from the cache.
*/
function remove(string $key): void;
/**
* Removes items from the cache by conditions.
*/
function clean(array $conditions): void;
}
You can’t perform that action at this time.