PECL wincache >= 1.1.0
wincache_ucache_get - Gets a variable stored in the user cache
Code Examples

wincache_ucache_get( mixed$key, [boolsuccess] ): mixed

Gets a variable stored in the user cache.



The key that was used to store the variable in the cache. key is case sensitive. key can be an array of keys. In this case the return value will be an array of values of each element in the key array. If an object, or an array containing objects, is returned, then the objects will be unserialized. See __wakeup() for details on unserializing objects.


Will be set to true on success and false on failure.

Return Values

If key is a string, the function returns the value of the variable stored with that key. The success is set to true on success and to false on failure.

The key is an array, the parameter success is always set to true. The returned array (name => value pairs) will contain only those name => value pairs for which the get operation in user cache was successful. If none of the keys in the key array finds a match in the user cache an empty array will be returned.

Related Functions

Example of wincache_ucache_get

Show all examples for wincache_ucache_get

PHP Version: