Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CApcCache
  • CCache
  • CDbCache
  • CDummyCache
  • CEAcceleratorCache
  • CFileCache
  • CMemCache
  • CMemCacheServerConfiguration
  • CRedisCache
  • CWinCache
  • CXCache
  • CZendDataCache
  • X2FileCache

Interfaces

  • ICache
  • ICacheDependency
  • Overview
  • Package
  • Class
  • Tree

Class CMemCacheServerConfiguration

CMemCacheServerConfiguration represents the configuration data for a single memcache server.

See http://www.php.net/manual/en/function.Memcache-addServer.php for detailed explanation of each configuration property.

CComponent
Extended by CMemCacheServerConfiguration
Package: system\caching
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/caching/CMemCache.php
Methods summary
public
# __construct( array $config )

Constructor.

Constructor.

Parameters

$config
array
$config list of memcache server configurations.

Throws

CException
if the configuration is not an array
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Properties summary
public string $host
#

memcache server hostname or IP address

memcache server hostname or IP address

public integer $port 11211
#

memcache server port

memcache server port

public boolean $persistent true
#

whether to use a persistent connection

whether to use a persistent connection

public integer $weight 1
#

probability of using this server among all servers.

probability of using this server among all servers.

public integer $timeout 15
#

value in seconds which will be used for connecting to the server

value in seconds which will be used for connecting to the server

public integer $retryInterval 15
#

how often a failed server will be retried (in seconds)

how often a failed server will be retried (in seconds)

public boolean $status true
#

if the server should be flagged as online upon a failure

if the server should be flagged as online upon a failure

API documentation generated by ApiGen 2.8.0