Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
Sulu
Component
Cache
MemoizeInterface
memoizeById
Sulu\Component\Cache\MemoizeInterface::memoizeById PHP Method
MemoizeInterface Interface Documentation
ファイルを表示
Open project: sulu/sulu
memoizeById()
public
method
Returns the value stored in the cache or uses the passed function to compute the value and save to cache This function uses the given key for the caching mechanism.
public
memoizeById
(
mixed
$id
,
array
$arguments
,
callable
$compute
,
integer
$lifeTime
= null ) :
mixed
$id
mixed
$arguments
array
array of parameter to call compute function
$compute
callable
$lifeTime
integer
cache lifetime
return
mixed
public function memoizeById($id, $arguments, $compute, $lifeTime = null);
MemoizeInterface
memoize
memoizeById