- 1 NAME
- 2 DESCRIPTION
- 3 CORE METADATA FIELDS
- 4 REFERENCES AND RELATED OBJECTS
- 5 INSTANCE VARIABLES
- 6 METHODS
- 7 SEE ALSO
- 8 COPYRIGHT
EPrints::DataObj::Cachemap - Cache tables
This is an internal class that shouldn't be used outside EPrints::Database.
CORE METADATA FIELDS
The unique numerical ID of this cachemap object.
The time the cachemap record was created in seconds since start of last epoch.
The time the cachemap record was last used in seconds since start of last epoch.
A serialisation of the search carried out that is stored in this cachemap record.
DEPRECATED. A boolean to record whether the cache is for single use where it will be created, used and immediately deleted. Such as type of caching is no longer required.
REFERENCES AND RELATED OBJECTS
Reference to the userid of the user who caused the cachemap record to be created, if this is known.
EPrints::DataObj::Cachemap->create_from_data( $session, $data, $dataset )
Creates a new cachemap data object in the database.
$dataset is the dataset it will belong to.
$data is the data structured as with EPrints::DataObj#new_from_data.
This will create sub-objects as well.
Call this via:
$dataset->create_object( $session, $data )
$fields = EPrints::DataObj::Access->get_system_field_info
Returns an array describing the system metadata of the cachemap dataset.
$dataset = EPrints::DataObj::Cachemap->get_dataset_id
Returns the ID of the EPrints::DataSet object to which this record belongs.
$defaults = EPrints::DataObj::Cachemap->get_defaults( $session, $data )
Return default values for this object based on the starting $data.
$dropped = EPrints::DataObj::Cachemap->cleanup( $repo )
Clean up old caches for specified $repo.
Returns the number of caches dropped.
$rc = $cachemap->remove
Remove this record from the data set and the cache table from the database.
Returns a code based of success of removing record / cache table.
$sql_name = $cachemap->get_sql_table_name
Returns the name of the cache table for this cachemap record.
$ok = $cachemap->create_sql_table( $dataset )
Create the cachemap database table that can store IDs for the specified $dataset.
Returns code based on the success of creating cache table.
© Copyright 2022 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
This file is part of EPrints 3.4 http://www.eprints.org/.
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.
EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.