PluginProbe
Independent Analytics – WordPress Analytics Plugin / 1.28.2
Independent Analytics – WordPress Analytics Plugin v1.28.2
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / vendor / illuminate / contracts / Cache / Store.php
Store.php
84 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IAWP_SCOPED\Illuminate\Contracts\Cache;
4
5 interface Store
6 {
7 /**
8 * Retrieve an item from the cache by key.
9 *
10 * @param string|array $key
11 * @return mixed
12 */
13 public function get($key);
14 /**
15 * Retrieve multiple items from the cache by key.
16 *
17 * Items not found in the cache will have a null value.
18 *
19 * @param array $keys
20 * @return array
21 */
22 public function many(array $keys);
23 /**
24 * Store an item in the cache for a given number of seconds.
25 *
26 * @param string $key
27 * @param mixed $value
28 * @param int $seconds
29 * @return bool
30 */
31 public function put($key, $value, $seconds);
32 /**
33 * Store multiple items in the cache for a given number of seconds.
34 *
35 * @param array $values
36 * @param int $seconds
37 * @return bool
38 */
39 public function putMany(array $values, $seconds);
40 /**
41 * Increment the value of an item in the cache.
42 *
43 * @param string $key
44 * @param mixed $value
45 * @return int|bool
46 */
47 public function increment($key, $value = 1);
48 /**
49 * Decrement the value of an item in the cache.
50 *
51 * @param string $key
52 * @param mixed $value
53 * @return int|bool
54 */
55 public function decrement($key, $value = 1);
56 /**
57 * Store an item in the cache indefinitely.
58 *
59 * @param string $key
60 * @param mixed $value
61 * @return bool
62 */
63 public function forever($key, $value);
64 /**
65 * Remove an item from the cache.
66 *
67 * @param string $key
68 * @return bool
69 */
70 public function forget($key);
71 /**
72 * Remove all items from the cache.
73 *
74 * @return bool
75 */
76 public function flush();
77 /**
78 * Get the cache key prefix.
79 *
80 * @return string
81 */
82 public function getPrefix();
83 }
84