Class

APCDataStore

Package: IO\Data\store Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2016 10 28 Since: PHPBoost 3.0 - 2009 09 16 Contributor: Loic ROUCHON horn@phpboost.com Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: io/data/store/APCDataStore.class.php

This data store is not already available, the APC PHP extension must be enabled for you yo use it. When it's available, it provides a memory area that is persistent (its life span is no the page execution) and shared by all simultaneous page executions. This is very efficient and has an infinite life span (in fact it's the Web server's one).

APCDataStore implements DataStore
Methods summary
public
# __construct( $cache_id )
public mixed
# get( string $id )

Returns the data stored in the $id key.

public boolean
# contains( string $id )

Tells whether the container contains the data at the key $id.

public
# store( string $id, mixed $object )

Stores data.

public
# delete( string $id )

Deletes the data you had stored.

public
# clear( )

Clears all data