xpdo/cache/xpdomemcache.class.php

Classes 
package
xpdo
subpackage
cache
Classes
xPDOMemCache

Description

Provides a memcache-powered xPDOCache implementation.

This requires the memcache extension for PHP.

\xPDOMemCache

Extends from
\xPDOCache
package
xpdo
subpackage
cache
Properties
$memcache
Methods
__construct
add
delete
flush
get
replace
set

Description

Provides a memcache-powered xPDOCache implementation.

This requires the memcache extension for PHP.

Properties

$memcache

 $memcache = 'null'

Details

visibility
protected
default
null
final
false
static
false

Methods

__construct

__construct(  $xpdo,  $options = array ) :
Arguments
$xpdo
$options
Details
visibility
public
final
false
static
false

add

add( string $key, string $var, integer $expire = 0, array $options = array ) : boolean

Adds a value to the cache.

Arguments
$key
string
A unique key identifying the item being set.
$var
string
A reference to the PHP variable representing the item.
$expire
integer
The amount of seconds for the variable to expire in.
$options
array
Additional options for the operation.
Output
boolean
True if successful
Details
visibility
public
final
false
static
false

delete

delete( string $key, array $options = array ) : boolean

Deletes a value from the cache.

Arguments
$key
string
A unique key identifying the item being deleted.
$options
array
Additional options for the operation.
Output
boolean
True if successful
Details
visibility
public
final
false
static
false

flush

flush( array $options = array ) : boolean

Flush all values from the cache.

Arguments
$options
array
Additional options for the operation.
Output
boolean
True if successful.
Details
visibility
public
final
false
static
false

get

get( string $key, array $options = array ) : mixed

Gets a value from the cache.

Arguments
$key
string
A unique key identifying the item to fetch.
$options
array
Additional options for the operation.
Output
mixed
The value retrieved from the cache.
Details
visibility
public
final
false
static
false

replace

replace( string $key, string $var, integer $expire = 0, array $options = array ) : boolean

Replaces a value in the cache.

Arguments
$key
string
A unique key identifying the item being set.
$var
string
A reference to the PHP variable representing the item.
$expire
integer
The amount of seconds for the variable to expire in.
$options
array
Additional options for the operation.
Output
boolean
True if successful
Details
visibility
public
final
false
static
false

set

set( string $key, string $var, integer $expire = 0, array $options = array ) : boolean

Sets a value in the cache.

Arguments
$key
string
A unique key identifying the item being set.
$var
string
A reference to the PHP variable representing the item.
$expire
integer
The amount of seconds for the variable to expire in.
$options
array
Additional options for the operation.
Output
boolean
True if successful
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox 0.11.2.