public function set(string $name, $value)
  {
      if (!$this->cache->has($name)) {
        $this->element_queue[] = $name;
      }

      $this->cache->set($name, $value, $this->ttl);

      $this->manageSize();
  }
public function set(string $name, $value)
  {
      if (!$this->cache->has($name)) {
        $this->element_queue[] = $name;
      }

      $this->cache->set($name, $value, $this->ttl);

      $this->manageSize();
  }
public function set ( string $ name , $ value ) { if ( ! $ this -> cache -> has ( $ name ) ) { $ this -> element_queue [ ] = $ name ; } $ this -> cache -> set ( $ name , $ value , $ this -> ttl ) ; $ this -> manageSize ( ) ; }
Set the IP address key to the specified value.
@param string $ip_address IP address to cache data for.
@param mixed $value Data for specified IP address.
Set the IP address key to the specified value .