Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
Gdn_Cache
registerFeature
Gdn_Cache::registerFeature PHP Method
Gdn_Cache Class Documentation
Mostra file
Open project: vanilla/vanilla
registerFeature()
public
method
FEATURE_COMPRESS: this cache can compress and decompress values on the fly FEATURE_TIMEOUT: this cache can timeout while reading / writing FEATURE_EXPIRY: this cache can expire keys
public
registerFeature
(
integer
$Feature
,
mixed
$Meta
= true )
$Feature
integer
One of the feature constants.
$Meta
mixed
An optional data to return when calling HasFeature. default true.
public function registerFeature($Feature, $Meta = true) { $this->features[$Feature] = $Meta; }
Gdn_Cache
__construct
activeCache
activeEnabled
activeStore
add
addContainer
config
decrement
exists
fail
failure
fallback
flush
get
getPrefix
getRevision
hasFeature
increment
incrementRevision
initialize
localClear
localGet
localSet
makeKey
online
option
registerFeature
remove
replace
store
stripKey
trace
type
unregisterFeature