Class Ethna_Plugin_Cachemanager_Memcached

Description

キャッシュマネージャクラス(pecl::memcached 版)

Located in /class/Plugin/Cachemanager/Memcached.php (line 17)

Ethna_Plugin_Abstract
   |
   --Ethna_Plugin_Cachemanager
      |
      --Ethna_Plugin_Cachemanager_Memcached
Variable Summary
Method Summary
 void clear (string $key, [string $namespace = null])
 mixed get (string $key, [int $lifetime = null], [string $namespace = null])
 int getLastModified (string $key, [string $namespace = null])
 mixed getMemcachedOption (string $opt)
 void isCached (string $key, [int $lifetime = null], [string $namespace = null])
 bool lock (string $key, [int $timeout = 5], [string $namespace = null])
 void set (string $key, mixed $value, [int $timestamp = null], [string $namespace = null], [ $expiration = null], int $lifetime)
 bool setMemcachedOption (string $opt, string $value)
 bool unlock (string $key, [string $namespace = null])
 void _load ()
Variables
array $config_default = array(
'host' => 'localhost',
'port' => '11211',
'use_pconnect' => false,
'retry' => 3,
'timeout' => 3,
)
(line 25)
  • var: plugin configure
  • access: public

Redefinition of:
Ethna_Plugin_Abstract::$config_default
mixed $_get_data_cache = array() (line 33)
  • access: protected

Inherited Variables

Inherited from Ethna_Plugin_Cachemanager

Ethna_Plugin_Cachemanager::$namespace

Inherited from Ethna_Plugin_Abstract

Ethna_Plugin_Abstract::$action_form
Ethna_Plugin_Abstract::$af
Ethna_Plugin_Abstract::$backend
Ethna_Plugin_Abstract::$config
Ethna_Plugin_Abstract::$controller
Ethna_Plugin_Abstract::$ctl
Ethna_Plugin_Abstract::$logger
Ethna_Plugin_Abstract::$name
Ethna_Plugin_Abstract::$session
Ethna_Plugin_Abstract::$type
Methods
clear (line 187)

delete cache

  • access: public
void clear (string $key, [string $namespace = null])
  • string $key: キャッシュキー
  • string $namespace: キャッシュネームスペース

Redefinition of:
Ethna_Plugin_Cachemanager::clear()
キャッシュから値を削除する
get (line 78)

get cached data

キャッシュに値が設定されている場合はキャッシュ値 が戻り値となる。キャッシュに値が無い場合やlifetime を過ぎている場合、エラーが発生した場合はEthna_Error オブジェクトが戻り値となる。

  • return: value
  • access: public
mixed get (string $key, [int $lifetime = null], [string $namespace = null])
  • string $key: cache key
  • int $lifetime: cache lifetime
  • string $namespace: namespace

Redefinition of:
Ethna_Plugin_Cachemanager::get()
キャッシュに設定された値を取得する
getLastModified (line 121)

キャッシュの最終更新日時を取得する

  • return: unixtime
  • access: public
int getLastModified (string $key, [string $namespace = null])
  • string $key: cache key
  • string $namespace: cache namespace

Redefinition of:
Ethna_Plugin_Cachemanager::getLastModified()
キャッシュの最終更新日時を取得する
getMemcachedOption (line 255)

get option of pecl::memcached directly

mixed getMemcachedOption (string $opt)
  • string $opt: option key
isCached (line 144)

check cache exists

  • access: public
void isCached (string $key, [int $lifetime = null], [string $namespace = null])
  • string $key: cache key
  • int $lifetime: lifetime
  • string $namespace: namespace

Redefinition of:
Ethna_Plugin_Cachemanager::isCached()
値がキャッシュされているかどうかを取得する
lock (line 213)

キャッシュデータをロックする

  • return: true:成功 false:失敗
  • access: public
bool lock (string $key, [int $timeout = 5], [string $namespace = null])
  • string $key: キャッシュキー
  • int $timeout: ロックタイムアウト
  • string $namespace: キャッシュネームスペース

Redefinition of:
Ethna_Plugin_Cachemanager::lock()
キャッシュデータをロックする
set (line 161)

set cache

  • access: public
void set (string $key, mixed $value, [int $timestamp = null], [string $namespace = null], [ $expiration = null], int $lifetime)
  • string $key: cache key
  • mixed $value: cache value
  • int $timestamp: timestamp of last modified
  • string $namespace: namespace
  • int $lifetime: expiration
  • $expiration

Redefinition of:
Ethna_Plugin_Cachemanager::set()
キャッシュに値を設定する
setMemcachedOption (line 242)

set option of pecl::memcached directly

bool setMemcachedOption (string $opt, string $value)
  • string $opt: option key
  • string $value: opeion value
unlock (line 227)

キャッシュデータのロックを解除する

  • return: true:成功 false:失敗
  • access: public
bool unlock (string $key, [string $namespace = null])
  • string $key: キャッシュキー
  • string $namespace: キャッシュネームスペース

Redefinition of:
Ethna_Plugin_Cachemanager::unlock()
キャッシュデータのロックを解除する
_load (line 42)

_load

  • access: protected
void _load ()

Redefinition of:
Ethna_Plugin_Cachemanager::_load()
_load

Inherited Methods

Inherited From Ethna_Plugin_Cachemanager

 Ethna_Plugin_Cachemanager::clear()
 Ethna_Plugin_Cachemanager::get()
 Ethna_Plugin_Cachemanager::getLastModified()
 Ethna_Plugin_Cachemanager::getNamespace()
 Ethna_Plugin_Cachemanager::isCached()
 Ethna_Plugin_Cachemanager::lock()
 Ethna_Plugin_Cachemanager::set()
 Ethna_Plugin_Cachemanager::setCompress()
 Ethna_Plugin_Cachemanager::setNamespace()
 Ethna_Plugin_Cachemanager::unlock()
 Ethna_Plugin_Cachemanager::_load()

Inherited From Ethna_Plugin_Abstract

 Ethna_Plugin_Abstract::__construct()
 Ethna_Plugin_Abstract::getConfig()
 Ethna_Plugin_Abstract::getName()
 Ethna_Plugin_Abstract::getType()
 Ethna_Plugin_Abstract::_detectName()
 Ethna_Plugin_Abstract::_detectType()
 Ethna_Plugin_Abstract::_load()
 Ethna_Plugin_Abstract::_loadConfig()

Documentation generated on Fri, 11 Nov 2011 03:58:42 +0900 by phpDocumentor 1.4.3