PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 2.0.0
Backup Migration v2.0.0
2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / analyst / src / Contracts / CacheContract.php
backup-backup / analyst / src / Contracts Last commit date
AnalystContract.php 8 months ago CacheContract.php 8 months ago HttpClientContract.php 8 months ago RequestContract.php 8 months ago RequestorContract.php 8 months ago TrackerContract.php 8 months ago
CacheContract.php
48 lines
1 <?php
2
3 namespace Analyst\Contracts;
4
5 /**
6 * Interface CacheContract
7 *
8 * @since 1.1.5
9 */
10 interface CacheContract
11 {
12 /**
13 * Save value with given key
14 *
15 * @param string $key
16 * @param string $value
17 *
18 * @return static
19 */
20 public function put($key, $value);
21
22 /**
23 * Get value by given key
24 *
25 * @param $key
26 *
27 * @param null $default
28 * @return string
29 */
30 public function get($key, $default = null);
31
32 /**
33 * @param $key
34 *
35 * @return static
36 */
37 public function delete($key);
38
39 /**
40 * Should get value and remove it from cache
41 *
42 * @param $key
43 * @param null $default
44 * @return mixed
45 */
46 public function pop($key, $default = null);
47 }
48