composer.json in the wrong place. Gone now.
[yaffs-website] / vendor / consolidation / annotated-command / src / Cache / SimpleCacheInterface.php
1 <?php
2 namespace Consolidation\AnnotatedCommand\Cache;
3
4 /**
5  * Documentation interface.
6  *
7  * Clients that use AnnotatedCommandFactory::setDataStore()
8  * are encouraged to provide a data store that implements
9  * this interface.
10  *
11  * This is not currently required to allow clients to use a generic cache
12  * store that does not itself depend on the annotated-command library.
13  * This might be required in a future version.
14  */
15 interface SimpleCacheInterface
16 {
17     /**
18      * Test for an entry from the cache
19      * @param string $key
20      * @return boolean
21      */
22     public function has($key);
23     /**
24      * Get an entry from the cache
25      * @param string $key
26      * @return array
27      */
28     public function get($key);
29     /**
30      * Store an entry in the cache
31      * @param string $key
32      * @param array $data
33      */
34     public function set($key, $data);
35 }