PHP Class Horde_Cache_Storage_Sql, horde

The table structure for the cache is as follows:
CREATE TABLE horde_cache (
    cache_id          VARCHAR(32) NOT NULL,
    cache_timestamp   BIGINT NOT NULL,
    cache_data        LONGBLOB,
    (Or on PostgreSQL:)
    cache_data        TEXT,
    (Or on some other DBMS systems:)
    cache_data        IMAGE,

    PRIMARY KEY (cache_id)
);
Author: Ben Klang ([email protected])
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Cache_Storage_Base
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_db Horde_Db_Adapter Handle for the current database connection.

Méthodes publiques

Méthode Description
__construct ( array $params = [] ) Constructor.
__destruct ( ) Destructor.
clear ( )
exists ( $key, $lifetime )
expire ( $key )
get ( $key, $lifetime )
set ( $key, $data, $lifetime )

Méthodes protégées

Méthode Description
_initOb ( )

Method Details

__construct() public méthode

Constructor.
public __construct ( array $params = [] )
$params array Parameters:
  - db: (Horde_Db_Adapter) [REQUIRED] The DB instance.
  - table: (string) The name of the cache table.
           DEFAULT: 'horde_cache'

__destruct() public méthode

Destructor.
public __destruct ( )

_initOb() protected méthode

protected _initOb ( )

clear() public méthode

public clear ( )

exists() public méthode

public exists ( $key, $lifetime )

expire() public méthode

public expire ( $key )

get() public méthode

public get ( $key, $lifetime )

set() public méthode

public set ( $key, $data, $lifetime )

Property Details

$_db protected_oe property

Handle for the current database connection.
protected Horde_Db_Adapter $_db
Résultat Horde_Db_Adapter