src/DataStore.php
public function exists(string $key): bool
    {
        $key = $this->getKey($key);

        return cache()->has($key);
    }
public function exists(string $key): bool
    {
        $key = $this->getKey($key);

        return cache()->has($key);
    }
public function exists ( string $ key ) : bool { $ key = $ this -> getKey ( $ key ) ; return cache ( ) -> has ( $ key ) ; }
Checks if the thing exists in the store
@param string $key
@return bool
Checks if the thing exists in the store