CrossPHP
  • Namespace
  • Class
  • Download

Namespaces

  • Cross
    • Auth
    • Cache
      • Driver
      • Request
    • Core
    • DB
      • Connecter
      • Drivers
      • SQLAssembler
    • Exception
    • Http
    • I
    • Lib
      • Document
    • Module
    • MVC
    • Runtime
  • None

Classes

  • FileCacheDriver
  • MemcacheDriver
  • RedisDriver

Class MemcacheDriver

Namespace: Cross\Cache\Driver
Package: Cross\Cache\Driver
Author:

wonli wonli@live.com Class MemcacheDriver


Located at Cache/Driver/MemcacheDriver.php

Methods summary

public
# __construct( array $option )

MemcacheDriver constructor.

MemcacheDriver constructor.

Parameters

$option

Throws

Cross\Exception\CoreException
public array|string
# get( string $key, integer|array & $flag = 0 )

从缓存中获取内容

从缓存中获取内容

Parameters

$key
$flag

Returns

array|string
public mixed|null
# __call( $method, $argv )

调用Memcache类提供的方法

调用Memcache类提供的方法

Parameters

$method
$argv

Returns

mixed|null

Properties summary

public Memcache $link
#
protected array $defaultOptions

集群参数默认配置

集群参数默认配置

# array( 'persistent' => true, 'weight' => 1, 'timeout' => 1, 'retry_interval' => 15, 'status' => true, 'failure_callback' => null )
CrossPHP API documentation generated by ApiGen