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

  • FileCache
  • Memcache
  • RedisCache

Class Memcache

Cross\Cache\Request\Memcache implements Cross\I\RequestCacheInterface
Namespace: Cross\Cache\Request
Package: Cross\Cache\Request
Author:

wonli wonli@live.com Class RequestMemcache


Located at Cache/Request/Memcache.php

Methods summary

public
# __construct( array $option )

Memcache constructor.

Memcache constructor.

Parameters

$option

Throws

Cross\Exception\CoreException
public mixed
# set( string $value )

设置request缓存

设置request缓存

Parameters

$value

Returns

mixed
set

Implementation of

Cross\I\RequestCacheInterface::set()
public array|string
# get( integer & $flag = 0 )

获取request缓存

获取request缓存

Parameters

$flag

Returns

array|string

Implementation of

Cross\I\RequestCacheInterface::get()
public boolean
# isValid( )

查看key是否有效

查看key是否有效

Returns

boolean

Implementation of

Cross\I\RequestCacheInterface::isValid()
public mixed
# setConfig( array $config = array() )

设置配置

设置配置

Parameters

$config

Returns

mixed

Implementation of

Cross\I\RequestCacheInterface::setConfig()
public mixed
# getConfig( )

获取缓存配置

获取缓存配置

Returns

mixed

Implementation of

Cross\I\RequestCacheInterface::getConfig()

Properties summary

protected array $config
#
protected string $cacheKey

缓存key

缓存key

#
protected integer $expireTime

有效时间

有效时间

# 3600
protected integer $flag
# 0
protected Memcache $driver
#
CrossPHP API documentation generated by ApiGen