Class

DataStoreFactory

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: 2015 06 29 Since: PHPBoost 3.0 - 2009 12 09 Contributor: Loic ROUCHON horn@phpboost.com Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: io/data/store/DataStoreFactory.class.php

This factory returns you the data store that are the best for your requirements.

Methods summary
public static DataStore
# get_ram_store( string $id )

Returns an efficient data store whose life span can be not infinite.

public static DataStore
# get_filesystem_store( string $id )

Returns an infinite-life span data store that can be not very efficient.

public static
public static
public static
# set_apc_enabled( boolean $enabled )

Enables or disables APC. Writes in the file /cache/apc.php