1 <?php
2 /**
3 * Cross - a micro PHP 5 framework
4 *
5 * @link http://www.crossphp.com
6 * @license MIT License
7 */
8 namespace Cross\I;
9
10 /**
11 * Interface HttpAuthInterface
12 *
13 * @package Cross\I
14 */
15 interface HttpAuthInterface
16 {
17 /**
18 * 设置
19 *
20 * @param string $key
21 * @param string|array $value
22 * @param int $expire
23 * @return mixed
24 */
25 public function set($key, $value, $expire = 0);
26
27 /**
28 * 获取
29 *
30 * @param string $key
31 * @param bool $deCode
32 * @return mixed
33 */
34 public function get($key, $deCode = false);
35 }
36