@param string $key
@param string $value

@return bool
519691
public function delete_matched( $key, $value ) {
		$post_ids = $this->find( $key, $value );
		if ( empty( $post_ids ) ) {
			return true;
		}
		foreach ( $post_ids as $post_id ) {
			$this->delete( $key, $post_id );
		}

		return true;
	}
617065
public static function set( $key, $value ) {
		self::$option[ self::$key ][ $key ] = $value;
		return update_option( self::$name, self::$option );
	}
740681
public function setValueByKey($key, $value)
    {
        $model = Configuration::whereConfigurationKey($key)->first();

        if (null === $model) {
            return null;
        }
        $model->update(['configuration_value' => $value]);

        return $model;
    }
726781
public function pushTo($key, $value): bool
    {
        if (is_array($value)) {
            foreach ($value as $subKeykey => $value) {
                $this[$key][$subKeykey] = $value;
            }
        } else {
            $this[$key][] = $value;
        }

        return true;
    }
706723
public static function withSetting($key, $value = null)
    {
        return static::all()->filter(function ($row) use ($key, $value) {
            $setting = $row->settings($key);

            if (!is_null($value)) {
                return !is_null($setting) && $setting === $value;
            }

            return !is_null($setting);
        });
    }
942812
public static function hasKeyAndValue(string $key, $value): bool
    {
        static::startSessionIfNotHasStarted();

        return \array_key_exists($key, $_SESSION) && $_SESSION[$key] === $value;
    }
243699
public function set($key, $value) {

        $keys = \explode('/',$key);

        if (\count($keys)>5) return false;

        switch (\count($keys)){

          case 1:
            $this->registry[$keys[0]] = $value;
            break;

          case 2:
            $this->registry[$keys[0]][$keys[1]] = $value;
            break;

          case 3:
            $this->registry[$keys[0]][$keys[1]][$keys[2]] = $value;
            break;

          case 4:
            $this->registry[$keys[0]][$keys[1]][$keys[2]][$keys[3]] = $value;
            break;

          case 5:
            $this->registry[$keys[0]][$keys[1]][$keys[2]][$keys[3]][$keys[4]] = $value;
            break;
        }

        return $this;
    }
573012
public function setnx(string $key, $value): bool {
		if ($value instanceof Closure) {
			$value = $value();
		}
		return $this->driver->setnx($key, static::serialize($value));
	}
100059
public function put($key, $value): bool {
        if ($this->hashMap->containsKey($key)) {
            $node = $this->getNodeFromHead($key);
            $node->setKey($key);
            $node->setValue($value);
            $this->unset($node);
            $this->updateHead($node);
            return true;
        }
        if ($this->hashMap->size() >= $this->capacity) {
            $end = $this->getEnd();
            if (null !== $end) {
                $this->unset($end);
                $this->hashMap->remove($end->getKey());
            }
        }
        $node = new Node();
        $node->setKey($key);
        $node->setValue($value);
        $this->updateHead($node);
        $this->hashMap->add($key, $value);
        return true;
    }
38719
public function setnx(string $key, string $value): bool {
		return $this->driver->setnx($key, $value);
	}
576584
static public function set( $key, $value )
    {
        if ( self::$hasStarted === false )
        {
            self::start();
        }
        $session =& self::sessionArray();
        $session[$key] = $value;

        return true;
    }
1278595
public function replace($key, $value)
    {
        if ($this->has($key)) {
            $this[$key] = $value;

            return true;
        }

        return false;
    }
534151
protected function setKeyValue($key, $value)
    {
        $this->validateKeyValue($key, $value);

        if ($this->isDefault($key, $value) && $this->isSaved($key)) {
            return $this->deleteRecord($key);
        } elseif ($this->isDefault($key, $value)) {
            return;
        } elseif ($this->isSaved($key)) {
            return $this->updateRecord($key, $value);
        }

        return $this->createRecord($key, $value);
    }
479022
public function cacheSet($key, $value)
    {
        return $this->cache() ? $this->cache()->set($key, $value) : null;
    }
26745
public static function prepare($key, $value)
    {
        if ($value == 'true') {
            return true;
        } elseif ($value == 'false') {
            return false;
        } elseif ($key == 'debug.level' && substr($value, 0, 2) == "E_") {
            return eval('return ' . $value . ';');
        } elseif ($key == 'application.path' && ($value === false || $value === 'false' || $value === 'auto')) {
            $sLibraryPath = DS . 'vendor' . DS . 'pabana' . DS . 'pabana' . DS . 'src' . DS . 'Core';
            return str_replace($sLibraryPath, '', __DIR__);
        }
        return $value;
    }
339738
public function contains($key, $value) {

		return in_array($value, $this->get($key, NULL, FALSE));

	}
11077
public function set($key, $value)
    {
        $setter = 'set'.ucfirst($key);

        if (is_array($this->current)) {
            $this->current[$key] = $value;
        } elseif ($this->isObjectWithMethod($this->current, $key)) {
            $this->current->$key($value);
        } elseif ($this->isObjectWithMethod($this->current, $setter)) {
            $this->current->$setter($value);
        } elseif ($this->isObjectWithMethod($this->current, 'set')) {
            $this->current->set($key, $value);
        } elseif (is_object($this->current)) {
            $this->current->$key = $value;
        } else {
            return false;
        }

        return true;
    }