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)
);
Mostrar archivo
Open project: horde/horde
Protected Properties
Property |
Type |
Description |
|
$_db |
Horde_Db_Adapter |
Handle for the current database connection. |
|
Public Methods
Protected Methods
Method Details
__construct()
public method
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 method
_initOb()
protected method
public exists ( $key, $lifetime ) |
public get ( $key, $lifetime ) |
public set ( $key, $data, $lifetime ) |
Property Details
$_db protected_oe property
Handle for the current database connection.
protected Horde_Db_Adapter $_db |
return |
Horde_Db_Adapter |
|