<commit_before><?php

namespace TillKruss\LaravelPHPRedis;

use Illuminate\Cache\TagSet;
use Illuminate\Cache\RedisStore as Store;

class RedisStore extends Store
{
    /**
     * Retrieve an item from the cache by key.
     *
     * @param  string|array  $key
     * @return mixed
     */
    public function get($key)
    {
        $value = $this->connection()->get($this->prefix.$key);

        if (! is_null($value) || $value !== false) {
            return is_numeric($value) ? $value : unserialize($value);
        }
    }

    /**
     * Begin executing a new tags operation.
     *
     * @param  array|mixed  $names
     * @return \TillKruss\LaravelPHPRedis\RedisTaggedCache
     */
    public function tags($names)
    {
        return new RedisTaggedCache($this, new TagSet($this, is_array($names) ? $names : func_get_args()));
    }
}<commit_msg>Fixed condition in `RedisStore::get()`<commit_after><?php

namespace TillKruss\LaravelPHPRedis;

use Illuminate\Cache\TagSet;
use Illuminate\Cache\RedisStore as Store;

class RedisStore extends Store
{
    /**
     * Retrieve an item from the cache by key.
     *
     * @param  string|array  $key
     * @return mixed
     */
    public function get($key)
    {
        $value = $this->connection()->get($this->prefix.$key);

        if (! is_null($value) && $value !== false) {
            return is_numeric($value) ? $value : unserialize($value);
        }
    }

    /**
     * Begin executing a new tags operation.
     *
     * @param  array|mixed  $names
     * @return \TillKruss\LaravelPHPRedis\RedisTaggedCache
     */
    public function tags($names)
    {
        return new RedisTaggedCache($this, new TagSet($this, is_array($names) ? $names : func_get_args()));
    }
}
{'fraction_non_alphanumeric': 0.1344055140723722, 'fraction_numerical': 0.0, 'mean_word_length': 2.5843621399176953, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '612782', 'n_tokens_mistral': 567, 'n_tokens_neox': 560, 'n_words': 125}