forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZendCache.php
83 lines (72 loc) · 2.75 KB
/
ZendCache.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
// Start of Zend Cache v.
/**
* Stores a serializable variable into Shared Memory Cache
*
* @param $key string the data's key. Possibly prefixed with namespace
* @param $value mixed can be any PHP object that can be serialized.
* @param $ttl int [optional] time to live in seconds. ZendCache keeps the objects in the cache as long as the TTL is no expired, once expired it will be removed from the cache
*
* @return bool FALSE when stored failed, TRUE otherwise
*/
function zend_shm_cache_store($key, $value, $ttl = 0) {}
/**
* Retrieves data stored in the Shared Memory Cache.
* If the key is not found, returns null.
*
* @param $key string the data's key. Possibly prefixed with namespace
*
* @return null|mixed NULL when no data matching the key is found, else it returns the stored data
*/
function zend_shm_cache_fetch($key) {}
/**
* Delete a key from the Shared Memory cache
*
* @param $key string the data's key. Possibly prefixed with namespace
*
* @return null|mixed when no data matching the key is found, else it returns the stored data
*/
function zend_shm_cache_delete($key) {}
/**
* Clear the entire Shared Memory cache or just the provided namespace.
*
* @param $namespace string [optional] Namespace to clear. If blank or is not passed, it will clear entire cache.
*
* @return bool TRUE on success, FALSE otherwise
*/
function zend_shm_cache_clear($namespace = '') {}
/**
* Stores a serializable variable into Disk Cache
*
* @param $key string the data's key. Possibly prefixed with namespace
* @param $value mixed can be any PHP object that can be serialized
* @param $ttl [optional] int time to live in seconds. ZendCache keeps the objects in the cache as long as the TTL is no expired, once expired it will be removed from the cache
*
* @return bool FALSE when stored failed, TRUE otherwise
*/
function zend_disk_cache_store($key, $value, $ttl = 0) {}
/**
* Retrieves data stored in the Shared Memory Cache
*
* @param $key string NULL when no data matching the key is found, else it returns the stored data
*
* @return null|mixed NULL when no data matching the key is found, else it returns the stored data
*/
function zend_disk_cache_fetch($key) {}
/**
* Delete a key from the cache
*
* @param $key string the data's key. Possibly prefixed with namespace
*
* @return null|mixed when no data matching the key is found, else it returns the stored data
*/
function zend_disk_cache_delete($key) {}
/**
* Clear the entire Disk Memory cache or just the provided namespace.
*
* @param $namespace string [optional] Namespace to clear. If blank or is not passed, it will clear entire cache.
*
* @return bool TRUE on success, FALSE otherwise
*/
function zend_disk_cache_clear($namespace = '') {}
// End of Zend Cache v.