Prado\Caching\TCache::get PHP Method

get() public method

Retrieves a value from cache with a specified key.
public get ( $id ) : mixed
return mixed the value stored in cache, false if the value is not in the cache or expired.
    public function get($id)
    {
        if (($data = $this->getValue($this->generateUniqueKey($id))) !== false) {
            if (!is_array($data)) {
                return false;
            }
            if (!$data[1] instanceof ICacheDependency || !$data[1]->getHasChanged()) {
                return $data[0];
            }
        }
        return false;
    }