Back to WincacheStorage class

Method store

public bool
store
(mixed $id, mixed $group, mixed $data)
Store the data to cache by ID and group
Parameters
  • string $id The cache data ID
  • string $group The cache data group
  • string $data The data to store in cache
Returns
  • bool
Since
  • 1.7.0

Method store - Source code

/**
 * Store the data to cache by ID and group
 *
 * @param   string  $id     The cache data ID
 * @param   string  $group  The cache data group
 * @param   string  $data   The data to store in cache
 *
 * @return  boolean
 *
 * @since   1.7.0
 */
public function store($id, $group, $data)
{
    return wincache_ucache_set($this->_getCacheId($id, $group), $data, $this->_lifetime);
}