save($id, $data[, $ttl = 60[, $raw = FALSE]])
Parameters: |
|
---|---|
Returns: |
TRUE on success, FALSE on failure |
Return type: |
string |
This method will save an item to the cache store. If saving fails, the method will return FALSE.
1 | $this ->cache->save( 'cache_item_id' , 'data_to_cache' ); |
Note
The $raw
parameter is only utilized by APC and Memcache, in order to allow usage of increment()
and decrement()
.
Please login to continue.