@@ -43,11 +43,19 @@ |
||
| 43 | 43 | } |
| 44 | 44 | return $names; |
| 45 | 45 | } |
| 46 | + |
|
| 47 | + /** |
|
| 48 | + * @param string $name |
|
| 49 | + */ |
|
| 46 | 50 | public function set($name,$data) |
| 47 | 51 | { |
| 48 | 52 | $this->cache->forever($this->prefix . $name,$this->encode($data)); |
| 49 | 53 | $this->addNames($name); |
| 50 | 54 | } |
| 55 | + |
|
| 56 | + /** |
|
| 57 | + * @param string $yaml_data |
|
| 58 | + */ |
|
| 51 | 59 | public function importYaml($yaml_data) |
| 52 | 60 | { |
| 53 | 61 | $data = Yaml::parse($yaml_data); |