xpdo/cache/xpdowincache.class.php

Classes 
package
xpdo
subpackage
cache
Classes
xPDOWinCache

Description

Provides a wincache-powered xPDOCache implementation.

This requires the wincache extension for PHP, version 1.1.0 or later. Earlier versions did not have user cache methods.

\xPDOWinCache

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

Description

Provides a wincache-powered xPDOCache implementation.

This requires the wincache extension for PHP, version 1.1.0 or later. Earlier versions did not have user cache methods.

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.