Class cache_api
Class cache_api
- cache_api implements cache_api_interface
Direct known subclasses
apc_cache, apcu_cache, memcache_cache, memcached_cache, postgres_cache, smf_cache, sqlite_cache, xcache_cache, zend_cache
Abstract
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Class-CacheAPI.php
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Class-CacheAPI.php
public
|
#
__construct( )
Does basic setup of a cache method when we create the object but before we call connect. |
public
boolean
|
#
isSupported( boolean $test = false )
Checks whether we can use the cache method performed by this API. |
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
boolean
|
#
setDefaultTTL( integer $ttl = 120 )
Sets a default Time To Live, if this isn't specified we let the class define it. |
public
string
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
protected
string
|
$version_compatible
The maximum SMF version that this will work with. |
#
'2.1.999'
|
protected
string
|
$min_smf_version
The minimum SMF version that this will work with. |
#
'2.1 RC1'
|
protected
string
|
$prefix
The prefix for all keys. |
#
''
|
protected
integer
|
$ttl
The default TTL. |
#
120
|