Ejemplo n.º 1
0
 public static function initCacheRoute()
 {
     if ($redisRoute = tRedis::get('RoutesCache')) {
         self::$route_array = json_decode($redisRoute, true);
         return;
     }
     if (is_file(APP_PATH . '/config/routes.php')) {
         self::$route_array = (include APP_PATH . '/config/routes.php');
     }
     tRedis::set("RoutesCache", json_encode(self::$route_array));
     return;
 }