src/Charcoal/Model/Service/ModelLoader.php
private function cacheKey($ident)
    {
        if ($this->objKey === null) {
            $model = $this->factory->get($this->objType);
            $this->setObjKey($model->key());
        }

        $cacheKey = 'object/'.str_replace('/', '.', $this->objType.'.'.$this->objKey.'.'.$ident);

        return $cacheKey;
    }
private function cacheKey($ident)
    {
        if ($this->objKey === null) {
            $model = $this->factory->get($this->objType);
            $this->setObjKey($model->key());
        }

        $cacheKey = 'object/'.str_replace('/', '.', $this->objType.'.'.$this->objKey.'.'.$ident);

        return $cacheKey;
    }
private function cacheKey ( $ ident ) { if ( $ this -> objKey === null ) { $ model = $ this -> factory -> get ( $ this -> objType ) ; $ this -> setObjKey ( $ model -> key ( ) ) ; } $ cacheKey = 'object/' . str_replace ( '/' , '.' , $ this -> objType . '.' . $ this -> objKey . '.' . $ ident ) ; return $ cacheKey ; }
Generate a cache key.

@param  string|integer $ident The object identifier to load.
@return string
Generate a cache key .