SproutCMS

This is the code documentation for the SproutCMS project

function set()

Set a cache item by id. Tags may also be added and a custom lifetime
can be set. Non-string data is automatically serialized.

Usage

boolean $Cache->set ( string $id , mixed $data [, array|string $tags [, integer $lifetime ]] );

Arguments

  1. string $id
    unique cache id
  2. mixed $data
    data to cache
  3. array|string $tags = NULL
    tags for this item
  4. integer $lifetime = NULL
    number of seconds until the cache expires

Return value

  • boolean