1 <?php
2 /**
3 * Neevo - Tiny database layer for PHP. (http://neevo.smasty.net)
4 *
5 * This source file is subject to the MIT license that is bundled
6 * with this package in the file license.txt.
7 *
8 * Copyright (c) 2012 Smasty (http://smasty.net)
9 *
10 */
11
12 namespace Neevo\Cache;
13
14
15 /**
16 * Neevo cache storage interface.
17 * @author Smasty
18 */
19 interface StorageInterface {
20
21
22 /**
23 * Fetches stored data.
24 * @param string $key
25 * @return mixed|null null if not found
26 */
27 public function fetch($key);
28
29
30 /**
31 * Stores data in cache.
32 * @param string $key
33 * @param mixed $value
34 */
35 public function store($key, $value);
36
37
38 }
39