Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
yii
caching
Cache
offsetSet
yii\caching\Cache::offsetSet PHP Method
Cache Class Documentation
Datei anzeigen
Open project: yiisoft/yii2
offsetSet()
public
method
If the cache already contains such a key, the existing value will be replaced with the new ones. To add expiration and dependencies, use the
Cache::set
method. This method is required by the interface [[\ArrayAccess]].
public
offsetSet
(
string
$key
,
mixed
$value
)
$key
string
the key identifying the value to be cached
$value
mixed
the value to be cached
public function offsetSet($key, $value) { $this->set($key, $value); }
Cache
add
addValue
addValues
buildKey
delete
deleteValue
exists
flush
flushValues
get
getValue
getValues
madd
mget
mset
multiAdd
multiGet
multiSet
offsetExists
offsetGet
offsetSet
offsetUnset
set
setValue
setValues