public function get(string $key)
    {
        $keyMD5 = md5($key);
        $value = $this->dataRepository->getValue($this->keyPrefix . substr($keyMD5, 0, 3) . '/' . substr($keyMD5, 3) . '.2');
        if ($value !== null) {
            try {
                $value = unserialize(gzuncompress($value));
                if ($value[0] > 0) {
                    if ($value[0] > time()) {
                        return $value[1];
                    }
                    return null;
                }
                return $value[1];
            } catch (\Exception $e) {
                
            }
        }
        return null;
    }
public function get(string $key)
    {
        $keyMD5 = md5($key);
        $value = $this->dataRepository->getValue($this->keyPrefix . substr($keyMD5, 0, 3) . '/' . substr($keyMD5, 3) . '.2');
        if ($value !== null) {
            try {
                $value = unserialize(gzuncompress($value));
                if ($value[0] > 0) {
                    if ($value[0] > time()) {
                        return $value[1];
                    }
                    return null;
                }
                return $value[1];
            } catch (\Exception $e) {
                
            }
        }
        return null;
    }
public function get ( string $ key ) { $ keyMD5 = md5 ( $ key ) ; $ value = $ this -> dataRepository -> getValue ( $ this -> keyPrefix . substr ( $ keyMD5 , 0 , 3 ) . '/' . substr ( $ keyMD5 , 3 ) . '.2' ) ; if ( $ value !== null ) { try { $ value = unserialize ( gzuncompress ( $ value ) ) ; if ( $ value [ 0 ] > 0 ) { if ( $ value [ 0 ] > time ( ) ) { return $ value [ 1 ] ; } return null ; } return $ value [ 1 ] ; } catch ( \ Exception $ e ) { } } return null ; }
Retrieves a value from the cache.

@param string $key The key under which the value is stored.
@return mixed|null Returns the stored value or null if not found or expired.
Retrieves a value from the cache .