每天laravel-20160626|RetrievesMultipleKeys
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了每天laravel-20160626|RetrievesMultipleKeys相关的知识,希望对你有一定的参考价值。
<?php namespace Illuminate\Cache; // a namespace trait RetrievesMultipleKeys {// has a name Retrieves Multiple Keys /** * Retrieve multiple items from the cache by key. * * Items not found in the cache will have a null value. * * @param array $keys * @return array */ public function many(array $keys)// Retrieve multiple items from the cache by key. {// items not found in the cache will have a null value. $return = [];// a store array foreach ($keys as $key) { $return[$key] = $this->get($key); }// a set get return $return;// a return }// get many value /** * Store multiple items in the cache for a given number of minutes. * * @param array $values * @param int $minutes * @return void */ public function putMany(array $values, $minutes)// Store multiple items in the cache for a given number of minutes. { foreach ($values as $key => $value) { $this->put($key, $value, $minutes); } }// a big set putMany }
本文出自 “专注php” 博客,请务必保留此出处http://lijinghsan.blog.51cto.com/3357095/1759658
以上是关于每天laravel-20160626|RetrievesMultipleKeys的主要内容,如果未能解决你的问题,请参考以下文章