[ Index ]

PHP Cross Reference of MyBB 1.8.38

title

Body

[close]

/inc/cachehandlers/ -> interface.php (source)

   1  <?php
   2  /**
   3   * MyBB 1.8
   4   * Copyright 2014 MyBB Group, All Rights Reserved
   5   *
   6   * Website: http://www.mybb.com
   7   * License: http://www.mybb.com/about/license
   8   *
   9   */
  10  
  11  /**
  12   * Cache Handler Interface
  13   */
  14  interface CacheHandlerInterface
  15  {
  16      /**
  17       * Connect and initialize this handler.
  18       *
  19       * @return boolean True if successful, false on failure
  20       */
  21  	function connect();
  22  
  23      /**
  24       * Connect and initialize this handler.
  25       *
  26       * @param string $name
  27       * @return boolean True if successful, false on failure
  28       */
  29  	function fetch($name);
  30  
  31      /**
  32       * Write an item to the cache.
  33       *
  34       * @param string $name The name of the cache
  35       * @param mixed $contents The data to write to the cache item
  36       * @return boolean True on success, false on failure
  37       */
  38  	function put($name, $contents);
  39  
  40      /**
  41       * Delete a cache
  42       *
  43       * @param string $name The name of the cache
  44       * @return boolean True on success, false on failure
  45       */
  46  	function delete($name);
  47  
  48      /**
  49       * Disconnect from the cache
  50       *
  51       * @return bool
  52       */
  53  	function disconnect();
  54  
  55      /**
  56       * @param string $name
  57       *
  58       * @return string
  59       */
  60  	function size_of($name='');
  61  }


2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref