Interface

DataStore

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: 2014 12 22 Since: PHPBoost 3.0 - 2009 12 09 Located at: io/data/store/DataStore.class.php

This interface represents a data store. Its different implementations store data in different physical areas, you have to use it according to the data's life span and the efficiency you need. A container can store several pieces of data, each of one has a string identifier you choose. That identifier must be a string with only letters and digits.

Direct known implementers
APCDataStore, FileSystemDataStore, RAMDataStore
Methods summary
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