src/Pckg/Database/Entity.php
public function cache($time, $type = 'app', $key = null)
    {
        return new Cached($this, $time, $type, $key);
    }
public function cache($time, $type = 'app', $key = null)
    {
        return new Cached($this, $time, $type, $key);
    }
public function cache ( $ time , $ type = 'app' , $ key = null ) { return new Cached ( $ this , $ time , $ type , $ key ) ; }
Wraps entity into proxy instance which takes care of handling cached requests.

@param        $time
@param string $type

@return Cached|Entity
Wraps entity into proxy instance which takes care of handling cached requests .