mirror of
				https://github.com/alchemy-fr/Phraseanet.git
				synced 2025-10-27 11:53:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			68 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /*
 | |
|  * This file is part of Phraseanet
 | |
|  *
 | |
|  * (c) 2005-2016 Alchemy
 | |
|  *
 | |
|  * For the full copyright and license information, please view the LICENSE
 | |
|  * file that was distributed with this source code.
 | |
|  */
 | |
| 
 | |
| namespace Alchemy\Phrasea\Cache;
 | |
| 
 | |
| use Doctrine\Common\Cache\Cache as DoctrineCache;
 | |
| 
 | |
| interface Cache extends DoctrineCache
 | |
| {
 | |
|     /**
 | |
|      * Sets the namespace
 | |
|      *
 | |
|      * @param string $namespace
 | |
|      */
 | |
|     public function setNamespace($namespace);
 | |
| 
 | |
|     /**
 | |
|      * Flushes all data contained in the adapter
 | |
|      */
 | |
|     public function flushAll();
 | |
| 
 | |
|     /**
 | |
|      * Name of the cache driver
 | |
|      * @return string
 | |
|      */
 | |
|     public function getName();
 | |
| 
 | |
|     /**
 | |
|      * Tell whether the caching system use a server or not
 | |
|      * @return boolean
 | |
|      */
 | |
|     public function isServer();
 | |
| 
 | |
|     /**
 | |
|      * Tell if the cache system is online
 | |
|      * @return boolean
 | |
|      */
 | |
|     public function isOnline();
 | |
| 
 | |
|     /**
 | |
|      * Get an entry from the cache.
 | |
|      *
 | |
|      * @param string $key cache id The id of the cache entry to fetch.
 | |
|      *
 | |
|      * @return string The cached data.
 | |
|      * @return FALSE, if no cache entry exists for the given id.
 | |
|      *
 | |
|      * @throws Exception if provided key does not exist
 | |
|      */
 | |
|     public function get($key);
 | |
| 
 | |
|     /**
 | |
|      * Delete multi cache entries
 | |
|      *
 | |
|      * @param  array                       $keys contains all keys to delete
 | |
|      * @return Cache
 | |
|      */
 | |
|     public function deleteMulti(array $keys);
 | |
| }
 | 
