public function forget($key) { array_forget($this->items, $key); //delete the key from db $this->storage->delete($key); // Clear the database cache $this->cache->forget('weboap.options'); }
/** * @param $ip */ public function forget($ip) { if (!$this->ip->isValid($ip)) { return; } //delete the ip from db $this->storage->delete($ip); // Clear the database cache $this->cache->destroy('weboap.visitor'); }