You are here

public function DatabaseStorageSortedSet::add in Key-value Extensions 8

Parameters

float $score:

mixed $member:

Overrides KeyValueStoreSortedSetInterface::add

File

src/KeyValueStore/DatabaseStorageSortedSet.php, line 10

Class

DatabaseStorageSortedSet

Namespace

Drupal\key_value\KeyValueStore

Code

public function add($score, $member) {
  $this
    ->addMultiple([
    [
      $score => $member,
    ],
  ]);
}