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)
);
파일 보기
프로젝트 열기: horde/horde
보호된 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$_db |
Horde_Db_Adapter |
Handle for the current database connection. |
|
공개 메소드들
보호된 메소드들
메소드 상세
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'
|
public exists ( $key, $lifetime ) |
public get ( $key, $lifetime ) |
public set ( $key, $data, $lifetime ) |
프로퍼티 상세
Handle for the current database connection.
protected Horde_Db_Adapter $_db |
리턴 |
Horde_Db_Adapter |
|