Пример #1
0
 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');
 }
Пример #2
0
 /**
  * @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');
 }