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)
);
Показать файл
Открыть проект
Защищенные свойства (Protected)
Свойство |
Тип |
Описание |
|
$_db |
Horde_Db_Adapter |
Handle for the current database connection. |
|
Открытые методы
Защищенные методы
Описание методов
__construct()
публичный Метод
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()
публичный Метод
_initOb()
защищенный Метод
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 |
|