Previous Page
_exception()

Solar_Cache_Adapter_Eaccelerator
add()

Next Page
apiVersion()

add()

public bool add ( string $key, mixed $data )

Inserts cache entry data, but only if the entry does not already exist.

Parameters

  • (string) $key: The entry ID.
  • (mixed) $data: The data to write into the entry.

Returns

  • (bool) True on success, false on failure.

Description

Inserts cache entry data, but only if the entry does not already exist.