eat a cookie, means get it once

@param string 	$key
@return mixed
777965
public static function once( $key ) {
		if ( !is_null( static::get( $key ) ) ) {
				
			$cookie = static::get( $key );
			static::delete( $key );
			
			return $cookie;
		}
	}
482708
public function get($key)
    {
        if (isset($this->store[$key])) {
            return filter_var($this->store[$key], FILTER_SANITIZE_STRING);
        }

        return filter_input(INPUT_COOKIE, $key, FILTER_SANITIZE_STRING);
    }
986823
public function read($key)
    {
        $key = $this->_key($key);

        return $this->_Memcached->get($key);
    }
125802
public function removeCookieItem($key)
    {
        if (isset($this->cookie[$key])) {
            unset($this->cookie[$key]);
            return true;
        } else {
            return false;
        }
    }
1343589
public function readLogin($key)
    {
        $key = $this->getKey($key);
        
        $ticket = Cookie::get($key);
        return $ticket ? Cache::get($ticket) : null;
    }
576336
public function get($key)
	{
		$value = xcache_get($this->id($key));

		if (isset($value))
		{
			return $value;
		}
	}
129907
public function clear($key)
    {
        setcookie($key, '', time() - 3600);
        unset($_COOKIE[$key]);
        unset($this->store[$key]);

        return $this;
    }
611243
public function get($key)
    {
        $getResult = $this->getValue($key);
        $unserialized = @unserialize($getResult);

        if (Util::hasInternalExpireTime($unserialized)) {
            $getResult = $unserialized['v'];
        }

        return $getResult;
    }
295139
protected function getCache($key) {
        $cached = ArrayHelper::getValue($this->cachedData, $key);
        if (!isset($cached)) {
            $cacheData = $this->resolveCacheComponent()->get($this->cacheKeyName);
            $cached = $this->cachedData[$key] = ArrayHelper::getValue($cacheData, $key);
        }
        return $cached;
    }
1094157
protected function objCacheGet($key)
    {
        if (isset($this->objCache[$key])) {
            return $this->objCache[$key];
        }
        return null;
    }
724133
public function get($key = null, $default = null)
    {
        if ($key) {
            $key = $this->prefix . $key;
            return Arr::get($_COOKIE, $key, $default);
        } else {
            return $default;
        }
    }
870837
public function getFromCache($key)
  {
    $value = $this->memcache->get($this->buildMKey($key));
    if ($value) {
      return unserialize($value);
    }
    return null;
  }
867827
public function delete($key)
    {
        if ($this->has($key)) {
            unset ($_COOKIE[$key]);
            $this->set($key, null, ['expire' => time() - 3600]);
        }

        return $this;
    }
58371
public function get($key = null)
    {
        //argument 1 must be a string or null
        Argument::i()->test(1, 'string', 'null');

        if (is_null($key)) {
            return $_COOKIE;
        }

        if (isset($_COOKIE[$key])) {
            return $_COOKIE[$key];
        }

        return null;
    }
535971
private function getCache($key)
    {
        $cache = $this->client->getItem($key);
        if ($cache->isHit()) {
            return $cache->get();
        }

        return null;
    }
444617
public function clearCookie($key = null)
    {
        if (!$this->_cookie) {
            $this->_cookie = new Cookie();
            $this->_cookie->setVitex(Vitex::getInstance());
        }
        $this->_cookie->clearCookie($key);
        return $this;
    }
639709
public function get($key)
  {
    $uuid = uniqid(static::CACHE_CHECK_PREFIX, true);
    $value = wp_cache_get($key, $this->getPrefix(), false, $uuid);

    if ($value !== $uuid) {
      return $value;
    }
  }