PHP 클래스 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)
);
저자: Ben Klang ([email protected])
저자: Michael Slusarz ([email protected])
상속: extends Horde_Cache_Storage_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_db Horde_Db_Adapter Handle for the current database connection.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
__destruct ( ) Destructor.
clear ( )
exists ( $key, $lifetime )
expire ( $key )
get ( $key, $lifetime )
set ( $key, $data, $lifetime )

보호된 메소드들

메소드 설명
_initOb ( )

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

Destructor.
public __destruct ( )

_initOb() 보호된 메소드

protected _initOb ( )

clear() 공개 메소드

public clear ( )

exists() 공개 메소드

public exists ( $key, $lifetime )

expire() 공개 메소드

public expire ( $key )

get() 공개 메소드

public get ( $key, $lifetime )

set() 공개 메소드

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

프로퍼티 상세

$_db 보호되어 있는 프로퍼티

Handle for the current database connection.
protected Horde_Db_Adapter $_db
리턴 Horde_Db_Adapter