示例#1
0
文件: Set.php 项目: mheydt/scalr
 private function pathOf($item)
 {
     foreach ($this->itemNames() as $name) {
         $path = "{$this->path}/{$name}";
         if ($item == $this->zookeeper->getData($path)) {
             return $path;
         }
     }
     return null;
 }
示例#2
0
 function get($key)
 {
     return $this->zookeeper->getData($this->formatKey($key));
 }