Grab the item from the database if it exists, otherwise delve deeper
into the stack and retrieve from another underlying middlware.

@param string   $key  Key of the session to read.
@param callable $next Next read operation in the stack.

@return string
181176
public function read($key, $next)
    {
        $data = $this->directRead($key);
        if (false === $data) {
            $data = $next($key);
            if (false !== $data) {
                $this->directWrite($key, $data);
            }
        }

        return $data;
    }
902652
public function get($key)
    {
        try {
            return $this->redis->get($key);
        } catch (\RedisException $e) {
            die("Error!: " . $e->getMessage() . "<br/>");
        }
    }
601996
public function pull($key)
    {
        if (!$this->containsKey($key)) {
            return null;
        }
        $removed = $this->items[$key];
        unset($this->items[$key]);

        return $removed;
    }
1044959
public function get($key)
    {
        $connection = $this->getConnection($key);
        $this->writeToRemote(array(
            'cmd' => 'get',
            'key' => $key,
        ), $connection);
        return $this->readFromRemote($connection);
    }
881046
public function write($key, $data, $next)
    {
        $item = new Option($data);
        $session_key = $this->sanitize($key);
        add_option("_wp_session_${session_key}", $item->data, '', 'no');
        add_option("_wp_session_expires_${session_key}", $item->time, '', 'no');

        return $next($key, $data);
    }
1086027
public function get($key)
    {
        $this->load();
        $value = NestedArrayUtil::getNestedArrayValue($this->state, explode('.', $key), $exists);

        return $exists ? $value : false;
    }
986823
public function read($key)
    {
        $key = $this->_key($key);

        return $this->_Memcached->get($key);
    }
215556
public function handle($command, $next)
    {
        $command->files()->transform(function($item) use ($command) {
            $item['file']->storeAs(
                $command->dir,
                $item['name'],
                [
                    'visibility' => 'public',
                    'disk'       => $command->disk
                ]
            );

            return $item['name'];
        });

        return $next($command);
    }
650115
public function retrieve(string $key)
    {
        $token = null;

        $storageInstance = $this->getRepository();

        $token = $storageInstance->{$key}?? null;

        return $token;
    }
190290
public function get($key)
    {
        $items = Arr::get($this->items, $key);

        return $this->firstOrAll($items);
    }
1113132
public function write($key, $data, $next)
    {
        $session_key = $this->sanitize($key);

        wp_cache_set("session_${session_key}", $data, 'sessions', $this->getExpiration());

        return $next($key, $data);
    }
1009303
function get($key) {
        assert($this->offsetExists($key));

        /**
         * @var Pair $pair
         */
        $pair = $this->avl->get(new Pair($key, null));

        return $pair->second;
    }
986466
public function increment($key, $step = 1)
    {
        $connection = $this->getConnection($key);
        $this->writeToRemote(array(
            'cmd' => 'increment',
            'key' => $key,
            'step' => $step,
        ), $connection);
        return $this->readFromRemote($connection);
    }
1360512
public function pull($key)
    {
        $item = $this->get($key);

        $this->remove($key);

        return $item;
    }
568298
public final function get ($key)
    {
        if (in_array($key, $this->getColumn())) {
            return $this->record->{$key};
        }

        return false;
    }
1136506
public function get($key)
    {
        $response = $this->dynamo->getItem([
            'TableName' => $this->table,
            'ConsistentRead' => false,
            'Key' => [
                $this->keyAttribute => [
                    'S' => $this->prefix.$key,
                ],
            ],
        ]);

        if (! isset($response['Item'])) {
            return;
        }

        if ($this->isExpired($response['Item'])) {
            return;
        }

        if (isset($response['Item'][$this->valueAttribute])) {
            return $this->unserialize(
                $response['Item'][$this->valueAttribute]['S'] ??
                $response['Item'][$this->valueAttribute]['N'] ??
                null
            );
        }
    }
1015197
public static function pull($key)
    {
        if (isset($_SESSION[self::$prefix . $key])) {
            $value = $_SESSION[self::$prefix . $key];
            unset($_SESSION[self::$prefix . $key]);

            return $value;
        }

        return null;
    }