Source for file cache.php
Documentation is available at cache.php
* GloryLands Caching system
* GloryLands, a Web-Based, Massive Multiplayer Online RPG/Strategy Game
* Copyright (C) 2008-09 John Haralampidis <jïhnys2[at]gmail.cïm>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program 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 General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* For any help/suggestions or troubleshooting you can see the
* project community website at <http://www.glorylands.gr>
* @license GNU/GPLv3 GNU General Public License version 3
* @author John Haralampidis <jïhnys2[at]gmail.cïm>
* @copyright Copyright (C) 2007-2009, John Haralampidis
* @todo Import the RAM caching from old engine
* @todo Import the disk caching from old engine
* Informs the engine that the caching should be fast.
* Use this flag for time-cruicial caching.
* Informs the engine that the data being stored are likely to be really big.
* By the term really big, we are talking for more than 100kb of data.
* Informs the engine that the data should be stored on a temprary
* media, and they can expire by the end of the script execution.
* Informs the engine that the data should be preserved only for this
* Informs the engine that the data should be permanately preserved on cache.
* Use this if you are caching structures that are not likely to change (such as configuration
self::$cache = GLConfig::$engine->path('cache');
static public function store($category, $id, $structure, $options) {
|