src/Spiritix/LadaCache/Cache.php
public function get($key)
    {
        $encoded = $this->redis->get($this->redis->prefix($key));

        // Prevent decoding if redis returns null (key does not exist).
        if ($encoded === null) {
            return null;
        }

        return $this->encoder->decode($encoded);
    }
public function get($key)
    {
        $encoded = $this->redis->get($this->redis->prefix($key));

        // Prevent decoding if redis returns null (key does not exist).
        if ($encoded === null) {
            return null;
        }

        return $this->encoder->decode($encoded);
    }
public function get ( $ key ) { $ encoded = $ this -> redis -> get ( $ this -> redis -> prefix ( $ key ) ) ; // Prevent decoding if redis returns null (key does not exist). if ( $ encoded === null ) { return null ; } return $ this -> encoder -> decode ( $ encoded ) ; }
Returns value of a cached key.

This method does not check if there is a value available for the given key, may return unexpected values if not.
Use has() to prevent this issue.

@param string $key

@return mixed
Returns value of a cached key .