src/MemorySharedManager.php
public function setStorage($storage, $options = null) {
        if (!$storage instanceof Storage\StorageInterface) {
            $storage = $this->getStoragePluginManager()->get($storage, $options);
        }
        $this->storage = $storage;
        return $this;
    }
public function setStorage($storage, $options = null) {
        if (!$storage instanceof Storage\StorageInterface) {
            $storage = $this->getStoragePluginManager()->get($storage, $options);
        }
        $this->storage = $storage;
        return $this;
    }
Set the current storage
@param Storage\StorageInterface/string $storage
@return SimpleMemoryShared