Exemplo n.º 1
0
 public static function initUserCache($app)
 {
     $key = 'user-cache-' . $app['id'];
     if (!Cache::has($key)) {
         $cache = UserOpenid::getAll($app['id']);
         $value = base64_encode(json_encode($cache));
         Cache::forever($key, $value);
     }
 }