del() public method

Delete key or array of keys from storage
public del ( string | array $key ) : boolean | array
$key string | array - keys
return boolean | array - if array of keys was passed, on error will be returned array of not deleted keys, or 'true' on success.
Example #1
0
 public function semaphore_delete()
 {
     $sem = $this->mem->read($this->key_semaphore);
     if (empty($sem)) {
         return true;
     }
     return $this->mem->del($this->key_semaphore);
 }
Example #2
0
 public function FlushLog()
 {
     $this->storage->del($this->cache_key);
 }