Last active
June 27, 2017 07:43
-
-
Save Stunc0/336b83c0428290377bb29840a065492a to your computer and use it in GitHub Desktop.
[Yii Cache] #Yii #cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yii::$app->cache; | |
Yii::$app->cache->get($key); | |
Yii::$app->cache->set($key, $object, $time); | |
Yii::$app->cache->getOrSet($key, function() use() { | |
return $something; | |
}, $time); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment