public function set($key, $value) { $collection = $this->getCollectionName(); $this->mongo->{$collection}->update(['name' => $key], ['$set' => ['value' => $value]], ['upsert' => true]); }
public function testSet() { $adapter = new MongoDBStorageAdapter($this->mongo); $adapter->set('key', 'value'); }