phpDocumentor GloryLands
Common
[ class tree: GloryLands ] [ index: GloryLands ] [ all elements ]

Source for file cache.php

Documentation is available at cache.php

  1. <?php
  2. /**
  3.   * GloryLands Caching system
  4.   *
  5.   * <pre>
  6.   * GloryLands, a Web-Based, Massive Multiplayer Online RPG/Strategy Game
  7.   * Copyright (C) 2008-09  John Haralampidis <jïhnys2[at]gmail.cïm>
  8.   *
  9.   * This program is free software: you can redistribute it and/or modify
  10.   * it under the terms of the GNU General Public License as published by
  11.   * the Free Software Foundation, either version 3 of the License, or
  12.   * (at your option) any later version.
  13.   *
  14.   * This program is distributed in the hope that it will be useful,
  15.   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.   * GNU General Public License for more details.
  18.   *
  19.   * You should have received a copy of the GNU General Public License
  20.   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  21.   *
  22.   * For any help/suggestions or troubleshooting you can see the
  23.   * project community website at <http://www.glorylands.gr>
  24.   * </pre>
  25.   *
  26.   * @license GNU/GPLv3 GNU General Public License version 3
  27.   * @package GloryLands
  28.   * @subpackage Common
  29.   * @author John Haralampidis <jïhnys2[at]gmail.cïm>
  30.   * @copyright Copyright (C) 2007-2009, John Haralampidis
  31.   * @version 1.0
  32.   */
  33.  
  34. /**
  35.   * GloryLands Cache
  36.   *
  37.   * @todo Import the RAM caching from old engine
  38.   * @todo Import the disk caching from old engine
  39.   */
  40. class GLCache {
  41.  
  42.     /**
  43.       * Informs the engine that the caching should be fast.
  44.       * Use this flag for time-cruicial caching.
  45.       */
  46.     const FAST 1;
  47.     
  48.     /**
  49.       * Informs the engine that the data being stored are likely to be really big.
  50.       * By the term really big, we are talking for more than 100kb of data.
  51.       */
  52.     const LARGE 2;
  53.  
  54.     /**
  55.       * Informs the engine that the data should be stored on a temprary
  56.       * media, and they can expire by the end of the script execution.
  57.       */
  58.     const TEMP 4;
  59.     
  60.     /**
  61.       * Informs the engine that the data should be preserved only for this
  62.       * session.
  63.       */
  64.     const SESSION 8;
  65.  
  66.     /**
  67.       * Informs the engine that the data should be permanately preserved on cache.
  68.       * Use this if you are caching structures that are not likely to change (such as configuration
  69.       * or file contents).
  70.       */
  71.     const PERMANENT 16;
  72.  
  73.     static public $cache;
  74.  
  75.     static public function initialize({
  76.         self::$cache GLConfig::$engine->path('cache');
  77.     }
  78.     
  79.     static public function store($category$id$structure$options{
  80.     
  81.     }
  82.  
  83. }
  84.  
  85. ?>

Documentation generated on Tue, 13 Oct 2009 23:48:40 +0300 by phpDocumentor 1.4.1