Пример #1
0
 public function string($string)
 {
     $key = md5($string);
     # load the environments
     if (e::$cache->check('yaml-cache', $key)) {
         $result = e::$cache->get('yaml-cache', $key);
     } else {
         $result = Spyc::YAMLLoadString($string);
         e::$cache->store('yaml-cache', $key, $result, 'base64');
     }
     return $result;
 }