Function Persistent_caching_memcache->set
Definitions
sources/persistent_caching/memcache.php
- Put data into the persistent cache.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $key | string | No | No | required parameter | N/A | N/A | Key |
| $data | mixed | No | No | required parameter | N/A | N/A | The data |
| $flags | integer | No | No | 0 | N/A | N/A | Various flags (parameter not used) |
| $expire_secs | ?integer | No | No | Null | N/A | N/A | The expiration time in seconds (null: no expiry) |
Preview
Code (PHP)
/**
* Put data into the persistent cache.
*
* @param string $key Key
* @param mixed $data The data
* @param integer $flags Various flags (parameter not used)
* @param ?integer $expire_secs The expiration time in seconds (null: no expiry)
*/
public function set(string $key, $data, int $flags = 0, ?int $expire_secs = null)
* Put data into the persistent cache.
*
* @param string $key Key
* @param mixed $data The data
* @param integer $flags Various flags (parameter not used)
* @param ?integer $expire_secs The expiration time in seconds (null: no expiry)
*/
public function set(string $key, $data, int $flags = 0, ?int $expire_secs = null)

